I was intending to type something like

use_aesni = True in latex.

Therefore, I type $use_aesni = True$. However, it becomes this.

enter image description here

  • 3
    \textrm{use\_aensi} and \mathrm{True} (apart from the _ don't use math italic for multi-letter words – David Carlisle Sep 12 '18 at 23:19

You have to escape the underscore. $use\_aesni = True$

  • 1
    While this does answer the question, the result is still poor in terms of the letter kerning. – Werner Sep 13 '18 at 0:05

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