[Tex/LaTex] Missing $ inserted

characterserrorsmath-modesymbolstext-mode

I am new to latex. I am trying to compile someone else's document. I have all the correct packages installed, but I get the following error:

*Overfull \hbox <37.8394pt too wide> in paragraph at lines 26-37  
[][]  
! Missing $ inserted  
<inserted text>  
1.39 Lines 14, 15 in vc_  
                          value are bottleneck  
?*  

Here are the lines that are referenced in the error message.
I understand that one of the lines is too long, but I'm not sure about how to fix it. Thanks a lot for your help.

\begin{table*}[h]
\caption{Functions}
\begin{tabular}{lll}
 Name & Description & Potential
 \\ \hline  \texttt{c\_w.m} &  gives relationship between $W$ and $C$
 \\  \texttt{compute\_pi\_min} &  Compute $\pi_{min}$ & gradient
 \\  \textbf{\texttt{criterion.m}} &  Compute RSS; steps 1-10(?)
 \\  \texttt{irr\_equation.m} & no idea\dots & none
 \\  \texttt{pi\_min\_equation.m} &  uses \texttt{vc\_value.m} & none
 \\  \texttt{pi\_min\_equation\_solo.m} &  computes optimal value of solo project &          quadrature
 \\  \texttt{solo\_value.m} &  computes optimal value of solo project & quadrature
 \\  \texttt{vc\_value.m} &  computes optimal value of a project to VC & quadrature \\
 \end{tabular}
 \end{table*}
 Lines 19, 44, 45 are bottlenecks in criterion.m -- criterion.m takes 75 percent of   time\\
 Lines 14, 15 in vc_value are bottlenecks

Best Answer

On the last line:

Lines 14, 15 in vc_value are bottlenecks

you use the underscore without escaping it. This is what causes the error.

The underscore is used to specify subscript in mathmode, so an error occurs when you try to use it like this. Just escape it as:

Lines 14, 15 in vc\_value are bottlenecks

and you're good to go.

You might find some extra information on this page as well, if you plan to use underscores a lot in your document:

http://www.tex.ac.uk/cgi-bin/texfaq2html?label=underscore

Also, see this related question on how to escape reserved TeX symbols.

Related Question