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?

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

1 Answer 1

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.

3
  • 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, 2018 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, 2018 at 20:20
  • Happy to (alongside with the OP) learn from it. Thanks! @egreg
    – gusbrs
    Apr 16, 2018 at 20:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .