TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a variable name that I need to include mid-paragraph. The variable is called "oral_read_score". LaTeX seems to think that I meant the "r" and "s" to be subscripts, and gives an error unless I change to $oral_read_score$, which is not what I want. Is there some option I can use to turn this error off?

share|improve this question
up vote 11 down vote accepted

Two possibilities:






enter image description here

LaTeX reserves the special character _ for math mode subscripts; you can escape this character using \_ for its use in text mode; the second option uses \verb to write the expression verbatim.

share|improve this answer
Many solutions in TeX/SX come without explanation. Explaining why yours is the right solution may help save millions of future LaTeX users precious time. – Marc van Dongen Nov 20 '12 at 19:46
@MarcvanDongen I added some remarks. – Gonzalo Medina Nov 20 '12 at 19:51
Thanks. I think this improves the answer. – Marc van Dongen Nov 20 '12 at 19:52

An alternative approach

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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