How to Type ő (O with double acute) on LaTeX
The letter ő does not have its own key on an English keyboard, but LaTeX still makes it easy to type. Use \H{o}, or pick one of the other methods in this guide. ő appears in Hungarian.
ő on LaTeX: \H{o}
Ő on LaTeX: \H{O}
Or copy it:
Method 1: LaTeX command
Write \H{o} in text mode. Load \usepackage[T1]{fontenc} for correct hyphenation and copy-paste from the PDF.
Method 2: Type the character directly
Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste ő into your source. On Overleaf, set the compiler in Menu → Compiler.
How to type the capital Ő
The uppercase form works the same way with Shift added where a letter is typed.
LaTeX command
Write \H{O} in text mode. Load \usepackage[T1]{fontenc} for correct hyphenation and copy-paste from the PDF.
Type the character directly
Since 2018 pdfLaTeX reads UTF-8 by default, so you can paste Ő into your source. On Overleaf, set the compiler in Menu → Compiler.
About the letter ő
ő is Unicode U+0151, named LATIN SMALL LETTER O WITH DOUBLE ACUTE. It is used in Hungarian. Two slanted lines above a vowel, found only in Hungarian: ő and ű are the long forms of ö and ü. See the ő character page for every code and shortcut.
Troubleshooting
- Accents on i and j need the dotless forms \i and \j in old LaTeX; modern LaTeX handles this automatically.
- If the letter is missing in the PDF, the font lacks it. Switch to XeLaTeX or LuaLaTeX with a broader font.
- Wrap commands in braces when the next character is a letter: \'{e}x, not \'ex.
Frequently asked questions
What is the shortcut for ő on LaTeX?
\H{o}.
Can I just copy and paste ő?
Yes. Click the copy button above, then paste with Ctrl+V on Windows and Chromebook, Cmd+V on a Mac, or touch and hold and choose Paste on a phone.
What is the Unicode code for ő?
U+0151. In HTML it is ő.
Related guides
- How to Type ő (O with double acute) on Windows
- How to Type ő (O with double acute) on Mac
- How to Type ő (O with double acute) on iPhone
- How to Type ő (O with double acute) on Android
- How to Type ő (O with double acute) on Microsoft Word
- How to Type ő (O with double acute) on Google Docs
- How to Type ł (L with stroke) on LaTeX
- How to Type ņ (N with cedilla) on LaTeX
- How to Type œ (Oe ligature (ethel)) on LaTeX
- How to Type ŕ (R with acute) on LaTeX