Q:The .cls document i used is a template for a journal IJCAS, i want to use the subfloat package to reveal the side-by-side subfigures,
1,when the subfig package is loaded, Message:! LaTeX Error: Command \setcaptionmargin already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... \caption@setmargin}
2,when the subfig package isnot loaded, of course, the undefined message will apear.
MWE:
\documentclass[fleqn]{IJCAS}
%% include the useful LaTeX packages:
%\usepackage{subfig}
\begin{document}
\title{Title}
\begin{figure}[H]
\centering
\subfloat[topology1]{
\includegraphics[scale=1]{1}
}
\subfloat[topology2]{
\includegraphics[scale=1]{1}
}
\caption{Interaction topology}
\end{figure}
\clearafterbiography\relax
\end{document}
the needed document: IJCAS.cls
Thoughts: the customized caption in IJCAS.cls conficts with the subfig package(in my opinion), is there any way to fix it ,thanks!