Skip to main content
v2026.11,986 entries · CC-BY 4.0

Accent in LaTeX: Commands for Letters with Diacritics

Which LaTeX accent commands to use for letters with diacritics, when UTF-8 input works instead, and how to fix common failures.

Written and maintained by CASRAI Editorial Board

Published · Last updated

On this page

To put an accent on a letter in LaTeX, type a backslash command before the letter, for example \'{e} for é, \"{o} for ö or \c{c} for ç. These text-mode accent commands are part of standard LaTeX, so no package is needed. This guide is for researchers writing names, quotations and terms in manuscripts, theses and bibliographies who need to know which command to use, when to use UTF-8 input instead, and why an accent sometimes fails.

What it is used for in research

Accents (diacritics) appear in author names, place names, cited titles and borrowed terms. Getting them right matters in reference lists and author bylines, where a mangled name is a citation error. This page covers text-mode accents. Accents over mathematical symbols (hats, vectors, bars) use different commands; see vector arrows in LaTeX and overlines in LaTeX.

How to install or access it

The commands below belong to LaTeX itself and need no \usepackage line. For UTF-8 keyboard input and fonts that cover more characters, the inputenc and fontenc packages apply (see the UTF-8 section below). The only add-on package discussed here is accents, published on CTAN by Javier Bezos (version 1.4, 2006): accents package documentation on CTAN.

Step-by-step: typing accented letters

Accent in LaTeX: the basic pattern

  1. Write the accent command, then the letter in braces: \"{o}.
  2. For a capital letter, put the capital inside the braces: \'{E}.
  3. Compile as usual. The unofficial LaTeX2e reference illustrates every accent with a lowercase o; the same pattern applies to other letters.

Accents in LaTeX: the command table

Command Accent Example input
\" Umlaut / dieresis \"{o}
\' Acute \'{o}
\` Grave \`{o}
\^ Circumflex \^{o}
\~ Tilde \~{o}
\= Macron \={o}
\. Dot over \.{o}
\u Breve \u{o}
\v Hacek (caron) \v{o}
\H Long Hungarian umlaut \H{o}
\c Cedilla \c{c}
\k Ogonek (not available in the OT1 encoding) \k{a}
\b Bar under \b{o}
\d Dot under \d{o}
\r Ring over \r{o}
\t Tie-after (takes two characters) \t{oo}

Source: LaTeX2e unofficial reference manual, “Accents” (read 2026-11-08).

Dotless i and j

\i produces a dotless i and \j a dotless j, which are “often used in place of their dotted counterparts when they are accented” (LaTeX2e unofficial reference manual). Older LaTeX versions needed \^{\i} to get î; the LaTeX Wikibook notes that current versions no longer need this.

UTF-8 input instead of commands

You can type é directly in the source file if LaTeX knows the file’s encoding. The LaTeX Wikibook explains that the inputenc package tells LaTeX the encoding of your .tex file, and cautions that LaTeX’s UTF-8 support “includes only a limited range of Unicode input characters”. A character outside that range can be declared with \DeclareUnicodeCharacter. Use the command route when a character is not accepted.

Output and how to read it

Each command places the mark over, under or through the letter in the PDF output. A command with an empty argument, such as \~{}, puts the mark over a blank space (LaTeX Wikibook), which is how a bare tilde is printed in text.

Text-mode and math-mode accents

Situation Use
Accent on a letter in running text, such as a surname Text commands from the table above
Accent over a symbol inside a formula Math accents such as \hat, \widehat, \vec, \bar, \tilde (LaTeX2e unofficial reference manual, “Math accents”)
Hat over i or j in a formula \imath, \jmath, for example \hat{\imath} (LaTeX Wikibook)

Troubleshooting

  • Accent commands fail inside a tabbing environment. There \', \` and \= are tabbing commands, so write \a', \a` and \a= for the accents (LaTeX Wikibook).
  • Ogonek missing. \k is not in the OT1 encoding (LaTeX2e unofficial reference manual). The Wikibook recommends the T1 font encoding (\usepackage[T1]{fontenc}) for characters the default encoding lacks.
  • UTF-8 character rejected. Declare it with \DeclareUnicodeCharacter or use the command form.
  • Need a mark LaTeX does not provide. The accents package offers \accentset{accent}{symbol} and \underaccent. Its documentation states the accent is always set in \scriptscriptstyle, so it is not suited to subscripts or superscripts.
  • Underlining versus an under-accent. \underbar{text} draws a bar at a fixed position below the baseline, crossing descenders; it is not the same as \b.

Free alternatives

Route What it does Source
Accent commands (LaTeX itself) Standard text accents, no package LaTeX2e unofficial reference manual
inputenc UTF-8 input Type accented characters directly; limited Unicode range LaTeX Wikibook
accents package (CTAN) Builds non-standard accents with \accentset and \underaccent CTAN package documentation

Related guides on other special characters in text: underscore in LaTeX and quotation marks in LaTeX.

FAQ

How do I write an accent in LaTeX?

Put the accent command before the letter in braces, such as \'{e} for é. The standard commands are in the table above.

Do I need a package for accents in LaTeX?

Not for the standard accents. A package is needed only for UTF-8 input (inputenc), a font encoding such as T1 (fontenc), or non-standard marks (accents).

Can I type accented letters directly in LaTeX?

Yes, with the encoding declared, but LaTeX’s UTF-8 support covers a limited range of characters; others need \DeclareUnicodeCharacter or a command.

Why does my accent not work in a tabbing environment?

Because \', \` and \= are tabbing commands there; use \a', \a` and \a=.

Sources

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about Accent in LaTeX: Commands for Letters with Diacritics

2 free questions a day, no account.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →