Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've compiled my LaTeX document into a PDF using the website ScribTeX, and everything seems to look fine, but I keep getting the following errors:

enter image description here

Similar errors happen every time I use a table.

The code in question is this block, which starts with line 141:

\begin{figure}[h]
\begin{center}
\begin{tabular}{|c|}

\hline
`a' \rightarrow  \tt{e}, \tt{@}, \tt{A} \\

`nice' \rightarrow   \tt{naIs}, \tt{nis} \\

`cold' \rightarrow \tt{kould} \\

`hour' \rightarrow \tt{aU\char18 r} \\
\hline
\end{tabular}
\captionfonts
\caption[queryDBwithOrthoWordForSampa example]{ In this and all subsequent diagrams, a `string in quotes' indicates an orthographic word or phrase, and a \texttt{monospaced string} indicates that it is a SAMPA word or phrase.  }
\label{fig:oronymGeneration:queryDBwithOrthoWordForSampa}
\end{center}
\end{figure}
share|improve this question
1  
Read Does it matter if I use \textit or \it, \bfseries or \bf, etc. and Will two-letter font style commands (\bf, \it, …) ever be resurrected in LaTeX? Not only is your use of \tt as an argument-taking macro incorrect, (it's actually an old-school switch), it's considered obsolete. –  Werner Dec 9 '12 at 2:48

1 Answer 1

As the error says, you're missing $ signs. This is because \rightarrow is a math mode command, and must be used in math mode.

You can solve the problem by using $\rightarrow$ instead.

share|improve this answer

Your Answer

 
discard

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.