To place two figures on separate pages in LaTeX, each with its own caption, you can use the float package to fix their positions and \clearpage to force a page break. Here's how to do it:
Step-by-Step Solution
-
Include the float package to use the [H] option (prevents floating):
\usepackage{float}
-
Write the LaTeX code for your figures, ensuring each is placed on its own page:
\begin{figure}[H]
\centering
\includegraphics{figure1.pdf} % Replace with your first figure's filename
\caption{Caption for the first figure.}
\label{fig:first}
\end{figure}
\clearpage % Force a page break here
\begin{figure}[H]
\centering
\includegraphics{figure2.pdf} % Replace with your second figure's filename
\caption{Caption for the second figure.}
\label{fig:second}
\end{figure}
Explanation:
[H]: Forces the figure to be placed exactly where the code is written, preventing LaTeX from moving it.
\clearpage: Ensures a page break after the first figure, pushing the second figure to the next page.
- Captions and Labels: Each figure has its own caption and label for referencing.
Advanced Case: Subfigures as Part of a Single "Figure"
If the figures are parts of a single logical figure (e.g., Figure 1a and 1b) but must span pages, use the subcaption package. However, LaTeX does not natively support breaking figures across pages. Here’s a workaround:
\usepackage{subcaption}
% First part (on first page)
\begin{figure}[H]
\centering
\begin{subfigure}{\textwidth}
\includegraphics{figure1.pdf}
\caption{First subfigure.}
\label{fig:part1}
\end{subfigure}
\end{figure}
\clearpage
% Second part (on next page)
\begin{figure}[H]
\ContinuedFloat % From subcaption package
\centering
\begin{subfigure}{\textwidth}
\includegraphics{figure2.pdf}
\caption{Second subfigure.}
\label{fig:part2}
\end{subfigure}
\caption{Combined figure across two pages.}
\label{fig:combined}
\end{figure}
Notes for Subfigures:
- The
\ContinuedFloat command ensures the subfigures share the same figure number.
- The final
\caption and \label apply to the entire figure.
- This requires the
subcaption package.
Final Notes:
- Ensure your LaTeX compiler (e.g.,
pdflatex) is used.
- Adjust filenames, widths, and captions as needed.
- For precise control over page breaks, avoid excessive text between figures.