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.

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

the following code produces an error:

missing $ inserted. 1.109 \end{array}

any suggestions on what I am missing:

\caption{My caption goes in here.}
\subfloat[Subfloat 01]
\subfloat[Subfloat 02]
{\[ \begin{array}{ccc}
$text$ & $text$ & $text$\\
$text$ & $text$ & $text$
share|improve this question
up vote 2 down vote accepted

Don't use display style math directly in this instance. Rather use $\begin{array}...\end{array}$. Here's a complete minimal example:

\usepackage{subfig}% http://ctan.org/pkg/subfig
\usepackage{float}% http://ctan.org/pkg/float
\usepackage[demo]{graphicx}% http://ctan.org/pkg/graphicx

\caption{My caption goes in here.}
\subfloat[Subfloat 01]
\subfloat[Subfloat 02]
text & text & text\\
text & text & text


In order to use display style math - which doesn't seem necessary in your example - you need to provide some fixed width for the float in the form of a minipage, say.

The demo option to graphicx is just to make this example compile, since the image Figure_1.png is not available.

share|improve this answer
your solution worked. i understand now the issue and the solution. – joe Jun 14 '12 at 18:39

Your Answer


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.