# Include subfigures in poster

I am trying to write a poster for a conference presentation, so far everything works fine except for 2 figures that I want to include (both should be on the same row with one common caption). I keep getting errors for some reason.The Packages that I am using are:

\usepackage{palatino}
\usepackage[latin1]{inputenc}
\usepackage{epsf}
\usepackage{amsmath,amssymb}
\usepackage{latexsym}
\usepackage{calc}
\usepackage{multicol}
\usepackage{amsmath,amsfonts,latexsym,amssymb,enumerate,amsthm,array,bm,amscd,overcite,psfrag,epsfig}
\usepackage{capt-of}
\usepackage{subfig}


I have tried using:

\begin{center}

\mbox{\subfigure%[Feasible Case \label{fig:Feas_Case}]
\subfigure%[Infeasible Case \label{fig:Infeas_Case}]
{\includegraphics[scale=0.4]{InfeasibleCase.eps} }
}
\captionof{figure}{My Feas-inf figures}
\label{fig:Feas_Infeas}

\end{center}


But I keep getting these errors:

! Undefined control sequence.
<argument> \subfigure
{\includegraphics [scale=0.4]{FeasibleCase.eps} }\qqua...
l.593 }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
File: FeasibleCase.eps Graphic file (type eps)
<FeasibleCase.eps>
! Undefined control sequence.
{\includegraphics [scale=0...
l.593 }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., \hobx'), type I' and the correct
spelling (e.g., I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
File: InfeasibleCase.eps Graphic file (type eps)
<InfeasibleCase.eps>


I am not sure what to do to fix this. Any idea? (I have also tried using the package \usepackage{subfigure} instead of \usepackage{subfig}, and that gives me even more errors.)

• On my post here, I have 2 examples on how to setup figures that may help you tex.stackexchange.com/questions/122314/… Also, here is another example tex.stackexchange.com/questions/121667/… – dustin Jul 6 '13 at 16:23
• There's no \subfigure command in the subfig package; the right command is \subfloat. – Gonzalo Medina Jul 6 '13 at 16:36
• @dustin: I have used one of your example: \begin{tabular}{cc} \subfloat[caption]{\includegraphics[width = 2in]{FeasibleCase.eps}} & \subfloat[caption]{\includegraphics[width = 2in]{InfeasibleCase.eps}} \end{tabular} but it did NOT work unfortunately, it is giving me the error: ! LaTeX Error: \subfloat outside float. – delphine mico Jul 6 '13 at 17:12
• I also posted one for you too but good you got it to work. – dustin Jul 6 '13 at 17:14
• @dustin: I have used one of your example: \begin{tabular}{cc} \subfloat[caption]{\includegraphics[width = 2in]{FeasibleCase.eps}} & \subfloat[caption]{\includegraphics[width = 2in]{InfeasibleCase.eps}} \end{tabular} but it did NOT work unfortunately, it is giving me the error: ! LaTeX Error: \subfloat outside float – delphine mico Jul 6 '13 at 17:16

\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\usepackage{float}
\begin{document}
\begin{figure}[H]
\centering
\begin{tabular}{cc}
\subfloat[caption]{\includegraphics[width = 1.5in]{something}} &
\subfloat[caption]{\includegraphics[width = 1.5in]{something}}
\end{tabular}
\caption{caption}
\end{figure}
\end{document}


This should do the job for you:

• when I use my eps figures in the above code (in a new file), the figures are black for some reason. Also, when I use the above code and the packages in the preamble for my poster, it still gives me an error unfortunately – delphine mico Jul 6 '13 at 17:44
• Never mind! I think the error came from the fact that I already had a '\usepackage{graphicx}', and adding the \usepackage[demo]{graphicx} probably caused some sort of incompatibility... But now it works just fine :) Thanks!!! – delphine mico Jul 6 '13 at 17:51