Graphics, Figures & TablesMissing $ inserted error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Missing $ inserted error

Post by pban92 »

Hi there,

What does it mean - "Missing $ inserted" error?

My code is here

Code: Select all

\documentclass[11pt,a4paper,oneside]{report}
\usepackage[pdftex]{graphicx}
\usepackage[colorlinks=true,
 	        linkcolor=blue,
        	citecolor=blue,
                urlcolor=blue,
  		filecolor=blue, 
		pdfpagemode=None, 
		pdfstartview=FitH]{hyperref}
\begin{document}
Reynolds number 3900..Figure \ref{fig:test01} is awesome!
\begin{figure}[h]
\centering
\begin{array}{c@{\hspace{.05in}}c@{\hspace{.05in}}c}
\includegraphics[width=1.55in]{106upallcom.pdf} $
\includegraphics[width=1.55in]{154upallcom.pdf} $
\includegraphics[width=1.55in]{202upallcom.pdf} \\
\end{array} $
\caption{Variance of the streamwise velocity fluctuations at three locations}
\label{fig:test01}
\end{figure}
\end{document}
I tried both with and without dollar sign and the same error. Pls help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10344
Joined: Mon Mar 10, 2008 9:44 pm

Missing $ inserted error

Post by Stefan Kottwitz »

Hi,

use array inside a math environment, inside array you don't need $ delimiters then. Or use the tabular environment instead of array.

Stefan
LaTeX.org admin
pban92
Posts: 54
Joined: Sat Aug 09, 2008 9:34 am

Re: Missing $ inserted error

Post by pban92 »

Thanks a lot Stefan..got it!

:)
Post Reply