o with macron in LaTeX (\bar{o})
- LaTeX command
\bar{o}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Puts a macron bar over o, giving ō; the same \bar accent denotes means and complex conjugates in math.
Macrons mark long vowels in Latin dictionaries, Japanese romanization (Tōkyō, Ōsaka), Māori, and Hawaiian; in text use \={o} or type ō. In mathematics \bar{x} is a sample mean, \bar{z} a complex conjugate, and \bar{A} sometimes a closure or complement. The bar from \bar has a fixed short width, so for longer expressions use \overline{A \cup B}, which spans the whole argument. Some authors prefer \overline even for single letters so that conjugates and closures look uniform.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
o with macron: $\bar{o}$
\[ \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i, \quad z\bar{z} = |z|^2 \]
\end{document}Related symbols
- o with dot above
\dot{o} - o with tilde
\tilde{o} - o with breve
\breve{o} - o with circumflex
\hat{o} - o with caron (háček)
\check{o} - o with acute accent
\acute{o}
Frequently asked questions
- How do I write o with macron in LaTeX?
- Type \bar{o} in math mode, for example $\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i, \quad z\bar{z} = |z|^2$. It works in plain LaTeX without loading any package.
- Which package do I need for \bar{o}?
- None. \bar{o} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \bar{o} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\bar{o}$ in running text.
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