Could someone please tell me why this
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfigure}
\begin{document}
\begin{figure}
\begin{subfigure}
\includegraphics{ngc3242fullslitmag.png}
\end{subfigure}
\end{figure}
\end{document}
gives this error message?
! Argument of \Gin@ii has an extra }.
<inserted text>
\par
l.7 \includegraphics
{ngc3242fullslitmag.png}
Thank you.
.pngextension? – Adam Liter Oct 06 '14 at 05:05subfiginstead ofsubfigure?subfigureis a deprecated package. See http://tex.stackexchange.com/questions/13625/subcaption-vs-subfig-best-package-for-referencing-a-subfigure – Adam Liter Oct 06 '14 at 05:11\begin{subfigure}and\includegraphics{...}in the source code eliminates the error for me. This also solves the problem withsubfig, too. – Adam Liter Oct 06 '14 at 05:18subfigureenvironment takes a mandatory argument -- its intended width. Because that piece of information is missing in the OP's code, LaTeX ends up producing a near-incomprehensible error message... – Mico Oct 06 '14 at 05:23