I am having some troubles in using \subfigure in LaTeX template for ASME conference papers, version 1.7. Here's my code:
Figure
% GRAPHICS
\RequirePackage{caption}
\RequirePackage{subcaption}
\usepackage{graphicx}
\usepackage{subfigure}
\begin{figure}[t]
\begin{center}
\subfigure[Main Effect Plot]{
\includegraphics[width=\columnwidth,keepaspectratio]{Figure/Main_Effects_Plot.pdf}
\label{fig:main_eff_plot}}
\subfigure[Interaction Plot]{
\includegraphics[width=\columnwidth,keepaspectratio]{Figure/Interaction_Plot.pdf}
\label{fig:inter_plot}}
\end{center}
\caption{FACTORIAL PLOT}
\end{figure}
Errors in LaTeX source
/usr/local/texlive/2013/texmf-dist/tex/latex/subfigure/subfigure.sty:113: LaTeX Error: No counter 'figure' defined. [\newcounter{subfigure}[figure]]
/usr/local/texlive/2013/texmf-dist/tex/latex/subfigure/subfigure.sty:126: LaTeX Error: No counter 'table' defined. [\newcounter{subtable}[table]]
/usr/local/texlive/2013/texmf-dist/tex/latex/subfigure/subfigure.sty:413: LaTeX Error: Command \subref already defined. [ \ref{sub@#1}}]
./asme2e.tex:360: Undefined control sequence. [\begin{quotation}]
./asme2e.tex:360: Undefined control sequence. [\begin{quotation}]
Any help?

\RequirePackage, just use\usepackage(see Why does the LaTeX kernel define \usepackage and \RequirePackage?). Also, all of these should be before\begin{document}, in what is called the preamble to the document. And, finally, only usesubcaption, don't also usesubfigure(see subcaption vs. subfig: Best package for referencing a subfigure). – Adam Liter Mar 10 '14 at 15:28\usepackage{captino},\usepackage{subcaption}and `\usepackage{graphics} in the preamble give me these errors:
– gmeroni Mar 10 '14 at 15:33./asme2e.tex:258: Undefined control sequence. [\subfigure]./asme2e.tex:261: Undefined control sequence. [\subfigure]subfigureis defined as an environment in thesubcaptionpackage---i.e., you use\begin{subfigure}and\end{subfigure}instead of\subfigure{}. You can take a look at thesubcaptiondocumentation or just see @Gonzalo's answer. – Adam Liter Mar 10 '14 at 15:36