Subfigure and labeling issue

2,181 views
Skip to first unread message

rosario

unread,
Dec 4, 2008, 3:21:31 PM12/4/08
to LaTeX Users Group
Hi All,

I have some issue with the subfigure packag and the labeling.
The code hereafter looks fine for me, anyhow I got 4 errors:
"Undefined control sequence".

If I remove the 2 label commands inside the subfigure (\label
{fig:SelezionaAsl} and \label{fig:SelezionaRag}), everything works
fine.

Could you please explain me which is the issue?

Thanks a lot,
Rosario

**********************************************
\documentclass [11pt ,a4paper, twoside]{article}
\usepackage[latin1 ]{inputenc}

\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{subfigure}
\usepackage{epsfig}
\usepackage{amsmath}
\usepackage{array}
\usepackage{url}
\usepackage[lofdepth,lotdepth]{subfig}

%\usepackage{hyperref}

\usepackage{indentfirst}

\usepackage [italian]{ babel }

\usepackage[big,binding=.6cm]{layaureo}

\pagestyle{fancy}
\graphicspath{{./img/}}



\lhead{Stampe parametriche}
\rhead{\today}

\title{Stampe}
\author{Rosario\thanks{rosar...@xxx.it}}

\begin{document}
\maketitle

\begin{figure}[htbp]
\begin{center}
\subfigure[Prima si stampa.] {
\label{fig:SelezionaAsl}
\includegraphics[width=0.45\textwidth]{SelezioneAsl}
}
\hspace{0.3cm}
\subfigure[Poi si stampa.] {
\label{fig:SelezionaRag}
\includegraphics[width=0.45\textwidth]{SelezioneRag}
}
\caption{Selezione dei campi.}
\label{fig:SelezionaCampi}
\end{center}
\end{figure}

\end{document}

rosario

unread,
Dec 5, 2008, 5:27:28 AM12/5/08
to LaTeX Users Group
I got the issue. I have included both subfigure and subfig packages.
Removing the subfig, everything work as expected.

cheers,
rosario
> \author{Rosario\thanks{rosario....@xxx.it}}

Peng Jiang

unread,
Sep 15, 2013, 11:01:44 PM9/15/13
to latexus...@googlegroups.com, rosariom...@gmail.com
Thanks. It solved my issue, too.
Reply all
Reply to author
Forward
0 new messages