LaTeX/Accents
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Accents
The rules differ somewhat depending whether you are in text mode, math mode, or the tabbing environment
[edit] Text mode
The following accents may be placed on letters. Although "o" is used in most of the example, the accents may be placed on any letter. Accents may even be placed above a "missing" letter; for example, \~{} produces a tilde over a blank space.
The following commands may be used only in paragraph or LR mode.
| LaTeX command | Sample | Description |
|---|---|---|
\`{o} |
ò | grave accent |
\'{o} |
ó | acute accent |
\^{o} |
ô | circumflex |
\"{o} |
ö | umlaut or dieresis |
\H{o} |
ő | long Hungarian umlaut (double acute) |
\~{o} |
õ | tilde |
\c{c} |
ç | cedilla |
\={o} |
ō | macron accent (a bar over the letter) |
\b{o} |
o | bar under the letter |
\.{o} |
ȯ | dot over the letter |
\d{u} |
ụ | dot under the letter |
\r{u} |
å | ring over the letter |
\u{o} |
ŏ | breve over the letter |
\v{s} |
š | caron/hacek ("v") over the letter |
\t{oo} |
o͡o | "tie" (inverted u) over the two letters |
Note that the letters "i" and "j" require special treatment when they are given accents because it is often desirable to replace the dot with the accent. For this purpose, the commands \i and \j can be used to produce dotless letters.
For example,
\^{\i}should be used for i, circumflex, î\"{\i}should be used for i, umlaut, ï
[edit] Math mode
Several of the above and some similar accents can also be produced in math mode. The following commands may be used only in math mode.
| LaTeX command | Sample | Description | Text-mode equivalence |
|---|---|---|---|
\hat{o} |
![]() |
circumflex | \^ |
\widehat{oo} |
![]() |
wide version of \hat over several letters |
|
\check{o} |
![]() |
vee or check | \v |
\tilde{o} |
![]() |
tilde | \~ |
\widetilde{oo} |
wide version of \tilde over several letters |
||
\acute{o} |
![]() |
acute accent | \` |
\grave{o} |
![]() |
grave accent | \' |
\dot{o} |
![]() |
dot over the letter | \. |
\ddot{o} |
![]() |
umlaut | \" |
\breve{o} |
![]() |
breve | \u |
\bar{o} |
![]() |
macron | \= |
\vec{o} |
![]() |
vector (arrow) over the letter |
[edit] Tabbing environment
Some of the accent marks used in running text have other uses in the tabbing environment. In that case they can be created with the following command:
\a'for an acute accent\a`for a grave accent\a=for a macron accent










