I'm using \mathcode"69"69 in the preamble, as proposed in a comment in this question, to automatically typeset e and i upright in mathematical equations.

The question is, is there a way to get an italics i f.ex. as an index in math mode later? If so, how?

I tried $\mathit{i}$, which doesn't work.


Commands can be defined using the old mathcode settings for i and e:




4 + 7i = 4e^{10} + b_\iti^\ite


Upright and italics for e and i

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.