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 단위 및 측정 →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.
Math poweredAI로 LaTeX 작성
최고의 AI LaTeX 편집기, Overleaf 대안
Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움
- AI로 아름다운 TikZ 다이어그램 생성
- 이미지를 업로드하고 LaTeX로 원활하게 변환
- 논문 작성 및 서식에 대한 즉각적인 지원 받기