Kelvin in LaTeX (\text{K})
- LaTeX command
\text{K}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Text and math mode
Where it is used
Kelvin, the SI base unit of thermodynamic temperature, with zero at absolute zero.
Since 1967 the unit is written K with no degree sign: 300 K, not 300 °K. Absolute zero is 0 K, water's triple point 273.16 K, and T(\text{K}) = T(^{\circ}\text{C}) + 273.15. Unit symbols must be upright, which \text provides; an italic K is a variable, such as an equilibrium constant or a stiffness. Leave a thin space between number and unit, 4.2\,\text{K}. In italic theorem text \mathrm{K} is safer since \text would follow the italic font.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Kelvin: $\text{K}$
\[ T = 273.15\,\text{K} + 25 = 298.15\,\text{K} \]
\end{document}Related symbols
- Meter
\text{m} - Degrees Fahrenheit
^{\circ}\text{F} - Kilogram
\text{kg} - Degrees Celsius
^{\circ}\text{C} - Second
\text{s} - Reduced Planck constant (h-bar)
\hbar
Frequently asked questions
- How do I write Kelvin in LaTeX?
- Type \text{K} in math mode, for example $T = 273.15\,\text{K} + 25 = 298.15\,\text{K}$. Load amsmath first with \usepackage{amsmath}.
- Which package do I need for \text{K}?
- \text{K} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
- Can I use \text{K} in text mode, or only in math mode?
- Both. \text{K} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredSchrijf LaTeX met AI
Beste AI LaTeX Editor, Overleaf Alternatief
Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI
- Genereer mooie TikZ-diagrammen met AI
- Upload afbeelding en converteer naadloos naar LaTeX
- Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen