o with macron in LaTeX (\bar{o})

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

xˉ=1n∑i=1nxi,zzˉ=∣z∣2\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i, \quad z\bar{z} = |z|^2
\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

All Huruf Latin →

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.
Math poweredTulis LaTeX menggunakan AI

Editor LaTeX AI Terbaik, Alternatif Overleaf

Octree membantu peneliti dari 15+ universitas menulis makalah penelitian lebih cepat menggunakan AI

  • Hasilkan diagram TikZ yang indah menggunakan AI
  • Unggah gambar dan konversi ke LaTeX dengan mulus
  • Dapatkan bantuan instan untuk menulis dan memformat makalah penelitian