o with acute accent in LaTeX (\acute{o})
- LaTeX command
\acute{o}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Places an acute accent over o, giving ó as a math accent; in words the text form \'o is used.
The acute accent appears in Spanish (canción, José), Portuguese, Polish (ó in Kraków), Icelandic, and Hungarian. For any of those words, write \'{o} or type ó directly, since \acute{o} works only in math mode and yields an italic letter. In mathematics \acute is a rarely used decoration, sometimes used to distinguish a transformed variable. Keep in mind that a prime x' is different from an acute accent. Hungarian long ő uses the double acute \H{o}, not two acute accents.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
o with acute accent: $\acute{o}$
\[ \acute{o} \quad \text{vs. } \text{Krak\'{o}w} \]
\end{document}Related symbols
- o with circumflex
\hat{o} - o with grave accent
\grave{o} - o with tilde
\tilde{o} - o with umlaut (diaeresis)
\ddot{o} - o with macron
\bar{o} - o with dot above
\dot{o}
Frequently asked questions
- How do I write o with acute accent in LaTeX?
- Type \acute{o} in math mode, for example $\acute{o} \quad \text{vs. } \text{Krak\'{o}w}$. It works in plain LaTeX without loading any package.
- Which package do I need for \acute{o}?
- None. \acute{o} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \acute{o} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\acute{o}$ in running text.
Editor LaTeX AI Terbaik, Alternatif Overleaf
Octree membantu penyelidik dari 15+ universiti menulis kertas penyelidikan dengan lebih cepat menggunakan AI
- Jana diagram TikZ yang cantik menggunakan AI
- Muat naik imej dan tukar ke LaTeX dengan lancar
- Dapatkan bantuan segera untuk menulis dan memformat kertas penyelidikan