o with underline in LaTeX (\underline{o})

o‾\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.

x‾≤x≤x‾\underline{x} \le x \le \overline{x}
\documentclass{article}
\begin{document}
o with underline: $\underline{o}$

\[ \underline{x} \le x \le \overline{x} \]
\end{document}

Related symbols

All Latijnse Letters →

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.
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