0

Underscores in text mode are common, but these trigger automatic math mode and then I have to go find all the underscores and escape them.

Goal: Is there a way to disable underscores in text-mode causing automatic conversion to math mode? In other words, this would mean no need to escape underscores in text mode.

I did a quick Google search using this exact title + 'latex', but no relevant results found.

puf
  • 57
  • 1
    You probably come across that question already, but see this exact answer: https://tex.stackexchange.com/a/321542/250119 – user202729 Jul 27 '22 at 03:59
  • @user202729 ahhh.; I didn't realize the desired answer would be all the way below. Thanks! – puf Jul 27 '22 at 04:17
  • 2
    You could use underscore package but I think you are starting from the wrong premise. "Underscores in text mode are common" Underscores essentially never occur in normal text, which is why it was a free character available as a math subscript character. If you are setting computer program variable names or other special forms, naturally you can locally make _ a normal letter, but nothing special about _, you might want $aa_b and %xxx_yyy also to be text so would need $ and % treated similarly which underscore package will not do. – David Carlisle Jul 27 '22 at 09:14
  • @DavidCarlisle Thanks for the kind reply. I agree, that makes sense. I like the local solution of making it a ‘normal letter’. – puf Jul 28 '22 at 18:22

0 Answers0