I want to create a subfigure in Latex but I get the following error message for the very first time: command
\c@subfigure
already defined, or name \end illegal.This is the code for my figure:
Code: Select all
\begin{figure}[h!]
\begin{center}
\input{/image/synchr_vs_asynchr.tex}
\subfigure[Total]{\label{fig:total_error}\includegraphics[trim=0cm 0.6cm 0cm 0cm, clip=true]{synchr_vs_asynchr.eps}}
\input{/image/synchr_error_motion.tex}
\subfigure[Synchronous]{\label{fig:synch_error}\includegraphics[trim=0.5cm 1cm 0cm 0cm, clip=true]{synchr_error_motion.eps}}
\end{center}
\caption{\label{fig:synchr vs asynchr} My figure.}
\end{figure}
Code: Select all
\usepackage[english,dutch]{babel}
\usepackage{nomencl} % For nomenclature
\usepackage[style=long,number=none]{glossary} % For list of abbreviations
\usepackage{hanging}
\usepackage{titlesec}
\usepackage[bottom]{footmisc} %footnote at bottom of page
\usepackage{graphicx,psfrag,color}
\usepackage{subfigure}
%set title spacing
\titlespacing*\section{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
\titlespacing*\subsection{0pt}{12pt plus 4pt minus 2pt}{2pt plus 2pt minus 2pt}
%set spacing for the table of contents
\usepackage{tocloft}
\renewcommand\cftchapafterpnum{\vskip-12pt}
\renewcommand\cftsecafterpnum{\vskip-12pt}
\renewcommand\cftsubsecafterpnum{\vskip-12pt}
%define new title (bold)
\makeatletter
\newcommand\mycustomhead{%
\@startsection{section}{1}{\z@}%
{-2.5ex \@plus -1ex \@minus -.2ex}%
{3pt \@plus.2ex}%
{\normalfont\normalsize\bfseries}}
\newcommand\myhead[1]{\mycustomhead*{#1}}
\makeatother