I have the following problem:
I want to have multiple figures in the same row. So I used the subfigure command. The subfigures are indexed (a), (b), (c). Now I have the same in the appendix, but there the indexing continues with (d), (e), (f).
This problem only occurs when I switch from my last chapter to the appendix. If I have multiple figures with subfigures within a chapter or within the appendix instead, then the indexing is fine. Also if I have multiple subfigures in the appendix and the indexing of the first one is wrong due to this bug, all later subfigures are fine.
The same happens if you take minipage and subcaption instead of subfigure and caption.
Example code:
Code: Select all
\documentclass{scrreprt}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{subfig}
\begin{document}
\begin{figure}
\begin{minipage}{2cm}
\includegraphics{Test}
\subcaption{}
\end{minipage}
\end{figure}
%\begin{figure}
% \includegraphics{Test}
% \caption{}
%\end{figure}
\appendix
\begin{figure}
\begin{minipage}{2cm}
\includegraphics{Test}
\subcaption{}
\end{minipage}
\end{figure}
\end{document}
I don't want to use minipage + caption because the caption "Figure 1.1" is too big and it feels redundant if you have "Figure 1.x" written 5 times. Does anyone know the official rules on how to caption multiple graphics in a formally correct way with LaTeX?
Kind regards,
Alex