o with underline in LaTeX (\underline{o})
- LaTeX command
\underline{o}- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Underlines o; in math \underline marks vectors, lower bounds, or emphasized symbols.
\underline works in both text and math mode and draws a rule under its whole argument, so \underline{o} gives an underlined o. Some engineering and mechanics texts use \underline{u} for vectors instead of bold, and optimization papers write \underline{x} for a lower bound paired with \overline{x} for an upper bound. In transliterations a macron below is a separate text accent, \b{o}, which is shorter and centered under the letter. For emphasis in prose, prefer \emph over underlining, because underlines do not break across lines.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
o with underline: $\underline{o}$
\[ \underline{x} \le x \le \overline{x} \]
\end{document}Related symbols
- Linked o-o (two o's joined by a dash)
o\!\!-\!\!o - o with dot below
\text{ọ} - OE ligature (lowercase)
\text{œ} - o with cedilla
\text{o̧} - OE ligature (uppercase)
\text{Œ} - o with double acute
\H{o}
Frequently asked questions
- How do I write o with underline in LaTeX?
- Type \underline{o} in math mode, for example $\underline{x} \le x \le \overline{x}$. It works in plain LaTeX without loading any package.
- Which package do I need for \underline{o}?
- None. \underline{o} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \underline{o} in text mode, or only in math mode?
- Both. \underline{o} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers