TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

$\acute{e}$ makes an italic e with accent in math mode, how can I get the acute accent with a regular letter?

I should mention that this is for annotating a plot with matplotlib, so common tricks in LaTeX may not work, I tried \text and \mbox, both failed.

share|improve this question

migrated from stackoverflow.com Dec 29 '11 at 11:42

This question came from our site for professional and enthusiast programmers.

@PeterGrill well, apparently this is also matplotlib related though ;-) – nye17 Dec 29 '11 at 9:27
up vote 12 down vote accepted

If you need to do it in math mode you can use $\acute{\mathrm{e}}$.

Here is a comparison of the output:

enter image description here

    $\acute{e}$ within math mode (without mathrm)\par
    $\acute{\mathrm{e}}$ within math mode (with mathrm)\par
    \'{e} outside of math mode
share|improve this answer
Add to the existing repertoire somewhere, $\textrm{\'e}$ within math mode (with \verb|\textrm|). – Werner Dec 29 '11 at 7:08
@petergrill thanks, that works. – nye17 Dec 29 '11 at 9:26
@Werner Just for the record, \textrm seems doesn't work in my matplotlib (I didn't turn on the usetex option but leave TeX strings to python to parse). – nye17 Dec 29 '11 at 9:30
@nye17: So \textrm does not work. What about \mathrm? Or what solution did you end up using? – Werner Dec 29 '11 at 18:35
@Werner peter's works, yup, \mathrm – nye17 Dec 29 '11 at 20:44

There's a full list of "normal" accents at http://en.wikibooks.org/wiki/LaTeX/Accents#Escaped_codes

share|improve this answer
Since your answer was migrated from Stack Overflow, consider registering your account with this site too. – Werner Dec 29 '11 at 18:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.