Per (slash in units) in LaTeX (/)
- LaTeX command
/- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Solidus used to mean 'per' in compound units like m/s, dividing one unit by another.
In math mode / is an ordinary symbol with no extra spacing, which gives the tight \text{m}/\text{s} look units need. SI rules allow only one solidus in a unit, so acceleration is \text{m}/\text{s}^2 and never m/s/s; for complicated units, negative exponents such as \text{J}\,\text{kg}^{-1}\,\text{K}^{-1} are clearer. Use parentheses when the denominator has several factors: \text{W}/(\text{m}^2\,\text{K}). For general fractions in displayed equations, \frac is usually better than a slash, but inline the slash avoids cramped stacked numbers.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Per (slash in units): $/$
\[ c = 4186\,\text{J}/(\text{kg}\,\text{K}) \]
\end{document}Related symbols
All Unit & Pengukuran →Frequently asked questions
- How do I write Per (slash in units) in LaTeX?
- Type / in math mode, for example $c = 4186\,\text{J}/(\text{kg}\,\text{K})$. It works in plain LaTeX without loading any package.
- Which package do I need for /?
- None. / is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use / in text mode, or only in math mode?
- Both. / compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan