4

it seems i am trying this

$\textit{E}_\pi^\circ$

and i get an ugly looking exponent

enter image description here

how can i fix this circle to not be so close tot he E?

  • 3
    $\textit{E}_\pi^{\,\circ}$ – Steven B. Segletes Apr 16 '18 at 0:46
  • You could also load the siunit package and do $\si{\textit{E}_\pi\degree}$. – marmot Apr 16 '18 at 1:22
  • 1
    Or you could make it simple: $E_\pi^\circ$. – gusbrs Apr 16 '18 at 2:26
  • Don't use \textit in math mode! – user91669 Apr 16 '18 at 10:10
  • 1
    @Sebastiano: Well, variables like E are already italic in math mode! So gusbrs is right. – Martin Scharrer Apr 16 '18 at 13:31
10

You don't need \textit in math mode. Text (and variables like E) will be italicized already. And the result is much better.

\documentclass{article}

\begin{document}
$E_\pi^\circ$
\end{document}

enter image description here

A visual comparison:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

$\textit{E}_\pi^\circ$ (very wrong)

$\mathit{E}_\pi^\circ$ (less wrong)

$E_\pi^\circ$ (right)

\textbf{$\textit{E}_\pi^\circ$} (why the first is very wrong)

\end{document}

enter image description here

The last example shows that \textit{E} is not only wrong for the bad spacing, but also because \textit will inherit attributes of the text font current when the formula started.

  • Well, @egreg, thanks for the addition. I guess that's the only way an answer of mine will reach "egreg-level" :). But should I convert it to CW? (I'd gladly do it). I originally answered in the "solve the OP's problem" spirit. I has now become something more elaborate. – gusbrs Apr 16 '18 at 20:19
  • Leave it as is. I just added the visual comparison for the OP to understand better what's going on. – egreg Apr 16 '18 at 20:20
  • Happy to (alongside with the OP) learn from it. Thanks! @egreg – gusbrs Apr 16 '18 at 20:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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