The subfigure
package provides a \subfigure
command, not an environment.
The syntax is
\subfigure[<optional argument>]{mandatory argument}
what happens with your code is that the mandatory argument is \centering
. Chaos ensues.
\documentclass[a4paper, 11pt, oneside]{report}
\usepackage[square, numbers, comma, sort&compress]{natbib}
\usepackage{amsmath,graphicx,amssymb,braket,xcolor,subfigure,upgreek,bbold}
\usepackage{esint}
\begin{document}
\begin{figure}
\centering
\subfigure[Fig.\ A]{\includegraphics[width=3cm]{example-image}\label{fig:Ex_Im}}
\subfigure[Fig.\ B]{\includegraphics[width=6cm]{example-image}\label{fig:Ex_Im2}}
\caption{This is the caption.}\label{fig:Label}
\end{figure}
\end{document}
However, subfigure
is obsolete and you should prefer either subfig
or subcaption
.
With the former package, the syntax is
\documentclass[a4paper, 11pt, oneside]{report}
\usepackage[square, numbers, comma, sort&compress]{natbib}
\usepackage{amsmath,graphicx,amssymb,braket,xcolor,subfig,upgreek,bbold}
\usepackage{esint}
\begin{document}
\begin{figure}
\centering
\subfloat[Fig.\ A]{\includegraphics[width=3cm]{example-image}\label{fig:Ex_Im}}\quad
\subfloat[Fig.\ B]{\includegraphics[width=6cm]{example-image}\label{fig:Ex_Im2}}
\caption{This is the caption.}\label{fig:Label}
\end{figure}
\end{document}
With the latter, you can use \subcaptionbox
:
\documentclass[a4paper, 11pt, oneside]{report}
\usepackage[square, numbers, comma, sort&compress]{natbib}
\usepackage{amsmath,graphicx,amssymb,braket,xcolor,subcaption,upgreek,bbold}
\usepackage{esint}
\begin{document}
\begin{figure}
\centering
\subcaptionbox{Fig.\ A\label{fig:Ex_Im}}{\includegraphics[width=3cm]{example-image}}\quad
\subcaptionbox{Fig.\ B\label{fig:Ex_Im2}}{\includegraphics[width=6cm]{example-image}}
\caption{This is the caption.}\label{fig:Label}
\end{figure}
\end{document}
I'd prefer subcaption
, but the class you're using might not like it; in this case, go with subfig
.
Best Answer
This seems to work just fine for me:
This is the result. Is this what you were looking for?