I tend to use \subfloats[]{}
in my figures when I want to list multiple labelled figures of similar content in one bigger picture. However, I see that some people use \subfigure
.
What is the difference between these two options?
Is one better than the other?
\documentclass{article}
\usepackage{float}
\usepackage{subfig}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}
\subfloat{\includegraphics[width= 2in]{something}}\\
\subfloat{\includegraphics[width= 2in]{something}}
\end{figure}
\end{document}
Or
\documentclass{article}
\usepackage{subfigure}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}
\subfigure{\includegraphics[width = 2in]{something}}\\
\subfigure{\includegraphics[width = 2in]{something}}
\end{figure}
\end{document}
Since subcaption vs. subfig: Best package for referencing a subfigure is two years old, does Axel's solution still apply? By this I mean, has nothing changed with subfig
? Are there only 2 'biased' pros for the use of subfig
?
Is the outcome still it is more advisable to use subcaption
over subfig
where I am using the latter subfig
?
Best Answer
The question now seems a bit clearer.
I can give you a very simple answer which can be found anywhere. This is from CTAN
Also considered that the latest versions of both
subfigure
andsubfig
have been released in 2005, while the latest version ofsubcaption
has been released a few months ago, you can make your conclusions.