1. I'm having some problems when I use the caption package. Example: in an float, I have the figures (a) and (b), but in the next one, I got (c) and (d) instead of again (a) and (b)... Why happens it?
2. My second problem is about the footnote counter. This start again a new chapter, but I don't soy to LaTeX that start again... Why?
This code replicates my problems:
Code: Select all
\documentclass{report}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{lipsum}
\begin{document}
\chapter{First chapter}
\lipsum[1]\footnote{Some text in the first foot}
\begin{figure}[h]
\caption{Test fig 1}
\begin{minipage}[t]{0.5\columnwidth}%
\begin{center}
\subcaption[(a)]{Fig 2a}
\end{center}
\begin{center}
\rule{4cm}{3cm}
\par\end{center}%
\end{minipage}%
\begin{minipage}[t]{0.5\columnwidth}%
\begin{center}
\subcaption{Fig2b}
\end{center}
\begin{center}
\rule{4cm}{3cm}
\end{center}
\end{minipage}
\end{figure}
\chapter{Last chapter}
\lipsum[5]\footnote{Why the counter of footer start again?!}
\begin{figure}[h]
\caption{Test fig 2}
\begin{minipage}[t]{0.5\columnwidth}
\begin{center}
\subcaption{Why start in (c) and not in (a)}
\end{center}
\begin{center}
\rule{4cm}{3cm}
\end{center}
\end{minipage}
\begin{minipage}[t]{0.5\columnwidth}
\begin{center}
\subcaption{Same problem!}
\end{center}
\begin{center}
\rule{4cm}{3cm}
\par\end{center}
\end{minipage}
\end{figure}
\end{document}