I have the following latex code to show two sub figures and their captions.
\documentclass{article}
\usepackage{amssymb}
%\usepackage{graphicx}
\usepackage{caption}
\usepackage{subfigure}
\usepackage[demo]{graphicx}
\begin{document}
\begin{figure}[]
\centering
\subfigure[Figure 1]{
\includegraphics[width=0.5\textwidth]{}
\label{figure:fig1}
}
\subfigure[Figure 2]{
\includegraphics[width=0.5\textwidth]{}
\label{figure:fig2}
}
\end{figure}
\end{document}
I want to increase the font size of the sub-captions and I have tried this:
\begin{figure}[]
\centering
\subfigure[\Large{Figure 1}]{
\includegraphics[width=0.5\textwidth]{}
\label{figure:fig1}
}
\subfigure[\Large{Figure 2}]{
\includegraphics[width=0.5\textwidth]{}
\label{figure:fig2}
}
\end{figure}
As shown in the above figure, this only makes the font of "Figure 1" part bigger, but not the "(a)" part of the caption of sub-figures.
How to increase the font size of sub-figures?
Best Answer
The package
subfigure
is obsolete and shouldn't be used any longer.There are two alternatives:
subfig
orsubcaption
.Use
\usepackage[font=Large]{subfig}
for larger caption labels, for example.The
subcaption
package providessubfigure
etc. environments, which are easier to use, in my point of view