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 ラテン文字 →

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 poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得