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
Code: Select all
\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{rosario.xxx@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}