Imagine I have the following figure
\begin{figure}[H]
\begin{minipage}{0.45\linewidth}
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=.7\linewidth]{example-image}
\caption{}
\label{fig1a}
\end{subfigure}
\quad
\begin{subfigure}[b]{\textwidth}
\centering
\includegraphics[width=.7\linewidth]{example-image}
\caption{}
\label{fig1b}
\end{subfigure}
\end{minipage}%
\begin{minipage}{0.55\linewidth}
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\label{fig1c}
\end{subfigure}%
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\label{fig1d}
\end{subfigure}
\quad
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\label{fig1e}
\end{subfigure}%
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image}
\caption{}
\label{fig1f}
\end{subfigure}
\end{minipage}
\caption{(a) A caption. (b) Another caption. (c) Yet another caption. (d) So many captions. (e) Really. (f) I'm done with captions.}
\label{fig1}
\end{figure}
which gives
My question: is it possible to automatically label the subfigures so that I don't have to write (a), (b), ... (f) by hand on the figure caption, and keep their order (as set by the mini pages)?
In some sense, it would be nice to simply write the caption under each subfigure but make these captions appear, automatically labelled in the correct ordering, in the figure's main caption. Any ideas?
Edit: I saw this question, but it still doesn't fix the automatic ordering problem.
\label
, so one could use\ref
or possibly\subref
. although that seems like more work, not less. I take it you want something like\footnote
to create the caption as you go.