o with circumflex in LaTeX (\hat{o})
- LaTeX command
\hat{o}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Places a circumflex hat over o, giving ô; in math the same \hat command marks estimators and unit vectors.
For French, Portuguese, or Vietnamese words such as hôtel or côte, use the text accent \^{o} or type ô directly; \hat works only in math mode. In mathematics \hat is everywhere: \hat{\theta} for an estimator, \hat{y} for a prediction, \hat{\mathbf{x}} for a unit vector, \hat{H} for a quantum operator, and \hat{f} for a Fourier transform. For accents over several characters use \widehat{AB}, which stretches. When placing a hat over i or j, use \hat{\imath} so the dot is removed.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
o with circumflex: $\hat{o}$
\[ \hat{y} = X\hat{\beta}, \quad \hat{f}(\xi) = \int f(x)e^{-2\pi i x\xi}\,dx \]
\end{document}Related symbols
- o with tilde
\tilde{o} - o with acute accent
\acute{o} - o with macron
\bar{o} - o with grave accent
\grave{o} - o with dot above
\dot{o} - o with umlaut (diaeresis)
\ddot{o}
Frequently asked questions
- How do I write o with circumflex in LaTeX?
- Type \hat{o} in math mode, for example $\hat{y} = X\hat{\beta}, \quad \hat{f}(\xi) = \int f(x)e^{-2\pi i x\xi}\,dx$. It works in plain LaTeX without loading any package.
- Which package do I need for \hat{o}?
- None. \hat{o} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \hat{o} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\hat{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