Minor LaTeX error – Missing $ inserted

By Ninad Pundalik

While creating a document in LaTeX today, I came across this strange error: ‘Missing $ inserted…’.  I checked the syntax everywhere, but could not figure out what was wrong.  I checked the LaTeX WikiBook’s page on Errors and Warnings, which lists the common errors, but still could not find it.  A quick Google search however led me to this short blogpost, which explains that this is an error generated when the math mode is active, or there is an unescaped underscore.  The latter was the case for my file, and escaping it fixed the error in a jiffy!

Blogged for future reference for self.