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로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기