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

This question already has an answer here:

Im writing a paper using Latex and I get repeatedly this "! Missing $ inserted. $ l.92 ?" error. Its only in two passages and I don't see any obvious mistake I made. The code is:


I get the error message for both of these blocks. I only started a week ago with latex and had no bigger problems up to now. Thanks for your help in advance. I use Miktex 2.9,texworks with pdflatex+makeindex+bibtex.

share|improve this question

migrated from stackoverflow.com May 17 '13 at 8:00

This question came from our site for professional and enthusiast programmers.

marked as duplicate by mafp, T. Verron, Kurt, Stefan Kottwitz May 17 '13 at 10:48

This question was marked as an exact duplicate of an existing question.

What allows you to use the tags <math>...</math> inside your document? Strip out all the unnecessary stuff and compose a minimal working example (MWE) so that one can compile it with the given lines. The problem in the second component is obvious, but I'm not sure how to deal with the first line... – Werner May 17 '13 at 1:39
You can't use '\textbf' inside math mode. See tex.stackexchange.com/questions/1328/… and tex.stackexchange.com/questions/595/… – Nasser May 17 '13 at 8:26
If you look error message carefully, you will see where LaTeX added $-sign. There is linefeed after \textbf{...}. In future this will help you spotting errors. – Jori Mäntysalo May 17 '13 at 10:28