o with double acute in LaTeX (\H{o})

o˝\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.

Erdo˝s number =1\text{Erd\H{o}s number } = 1
\documentclass{article}
\usepackage{amsmath}
\begin{document}
o with double acute: $\H{o}$

\[ \text{Erd\H{o}s number } = 1 \]
\end{document}

Related symbols

All ラテン文字 →

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

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

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

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