1

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}

enter image description here

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?

  • 2
    The package subfigure is completely outdated. Use subfig or subcaption – user31729 Jun 25 '16 at 15:50
4

The package subfigure is obsolete and shouldn't be used any longer.

There are two alternatives: subfig or subcaption.

Use \usepackage[font=Large]{subfig} for larger caption labels, for example.

\documentclass{article}

\usepackage[demo]{graphicx}

%\usepackage{amssymb}
\usepackage{caption}
\usepackage[font=Large]{subfig}




\begin{document}

\listoffigures

\captionsetup[figure]{font=Large}

\clearpage
\begin{figure}

\centering
\subfloat[My first figure]{%
  \label{figure:fig1}
  \includegraphics[width=0.5\textwidth]{}
}

\subfloat[My second figure]{\label{figure:fig2}\includegraphics[width=0.5\textwidth]{}}
\caption{My first figure}
\label{myfullfigure}

\end{figure}

In \subref{figure:fig1} we see this and in \ref{myfullfigure} we see all



\end{document}

enter image description here

The subcaption package provides subfigure etc. environments, which are easier to use, in my point of view

  • Thanks, that works. I have another issue, though. When I add more than 2 sub-figures, they do not appear one under the other. Any ideas? – Co Koder Jun 25 '16 at 16:38
  • @CoKoder - Have you tried inserting a blank line between the subfigures? – Mico Jun 25 '16 at 16:46
  • yes, I did. That did the trick, but subfigure package seems to do this automatically. Is there a better way than inserting a blank line? – Co Koder Jun 25 '16 at 16:49
  • @CoKoder: That's the way how TeX or LaTeX inserts a blank line: Leaving a blank line. Too easy? ;-) – user31729 Jun 25 '16 at 17:41
  • @ChristianHupfer Can you add an example using subcaption, since for many it's the preferred option? – Ela782 May 9 '17 at 17:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.