Take the 2-minute tour ×
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.

$\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
add comment

2 Answers

up vote 11 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

\documentclass{article}
\begin{document}
    $\acute{e}$ within math mode (without mathrm)\par
    $\acute{\mathrm{e}}$ within math mode (with mathrm)\par
    \'{e} outside of math mode
\end{document}
share|improve this answer
1  
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
add comment
\'{e}

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
add comment

Your Answer

 
discard

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.