o with double acute in LaTeX (\H{o})
- LaTeX command
\H{o}- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Writes the Hungarian long ő with a double acute accent, a text-mode command for names like Erdős.
\H is a text accent, not a math accent, so use it in prose or inside \text{...}; in bare math mode it raises an error. Hungarian distinguishes ö from ő and ü from ű, so the mathematician's name is Erdős, not Erdös, and getting it right in a bibliography is a courtesy worth the extra command. In BibTeX, wrap the accent in braces, {\H{o}}, so sorting and case changes do not mangle it. Do not try to fake it with 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 double acute: $\H{o}$
\[ \text{Erd\H{o}s number } = 1 \]
\end{document}Related symbols
- o with cedilla
\text{o̧} - o with caron (háček)
\check{o} - o with dot below
\text{ọ} - o with breve
\breve{o} - o with underline
\underline{o} - o with dot above
\dot{o}
Frequently asked questions
- How do I write o with double acute in LaTeX?
- Type \H{o} in math mode, for example $\text{Erd\H{o}s number } = 1$. It works in plain LaTeX without loading any package.
- Which package do I need for \H{o}?
- None. \H{o} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \H{o} in text mode, or only in math mode?
- Both. \H{o} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredSumulat ng LaTeX gamit ang AI
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