This question already has an answer here:

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

marked as duplicate by Werner, Phelype Oleinik, Troy, Stefan Pinnow, TeXnician Sep 13 '18 at 5:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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.