Second in LaTeX (\text{s})
- LaTeX command
\text{s}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Text and math mode
Where it is used
Second, the SI base unit of time, defined by the caesium-133 hyperfine transition frequency.
An upright s is the unit; italic s often stands for displacement or arc length, so the formatting carries meaning in s = 5\,\text{m} versus t = 5\,\text{s}. Avoid abbreviations like sec in technical writing. Inverse seconds, \text{s}^{-1}, measure rates and are the same as hertz when describing frequency. Prefixed forms include \text{ms}, \mu\text{s} and \text{ns}; for the micro prefix, an upright mu is preferred by SI style, which plain \mu does not provide in the default fonts.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Second: $\text{s}$
\[ g = 9.81\,\text{m}\,\text{s}^{-2}, \quad t = 2.0\,\text{s} \]
\end{document}Related symbols
All Eenheden & Metingen →Frequently asked questions
- How do I write Second in LaTeX?
- Type \text{s} in math mode, for example $g = 9.81\,\text{m}\,\text{s}^{-2}, \quad t = 2.0\,\text{s}$. Load amsmath first with \usepackage{amsmath}.
- Which package do I need for \text{s}?
- \text{s} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
- Can I use \text{s} in text mode, or only in math mode?
- Both. \text{s} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
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