[Tex/LaTex] Preventing text between figures

floats

I have 6 figures I want to include in a paper one after the other. When placing the figures only 2 fit on a page and the space at the bottom of the page is being filled by a few lines of text from the next section. Is there any way to prevent this and just have all 6 of the figures before the text begins. I have tried using \newpageand that doesn't work. I would prefer not to resize my figures to solve the problem also.

Best Answer

It suffices to use the [p] placement directive for each figure environment. I suggest you use three separate figure environments, each containing two graphs and two associated \caption directives.

Here's an MWE that illustrates the recommended setup. Running text is on page 1; pages 2, 3, and 4 contain the six graphs, and running text continues on page 5.

\documentclass{article}
\usepackage[demo]{graphicx} % remove 'demo' option in real doc.
\usepackage{lipsum}
\begin{document}

\lipsum[1] % filler text

\begin{figure}[p]
\includegraphics[width=\textwidth]{fig1}
\caption{First figure}
\vspace{1in} % or whatever spacing is appropriate
\includegraphics[width=\textwidth]{fig2}
\caption{Second figure}
\end{figure}
\begin{figure}[p]
\includegraphics[width=\textwidth]{fig3}
\caption{Third figure}
\vspace{1in}
\includegraphics[width=\textwidth]{fig4}
\caption{Fourth figure}
\end{figure}
\begin{figure}[p]
\includegraphics[width=\textwidth]{fig5}
\caption{Fifth figure}
\vspace{1in}
\includegraphics[width=\textwidth]{fig6}
\caption{Sixth figure}
\end{figure}

\lipsum[2-10] % more filler text
\end{document}

If the six graphs have to be placed at the very beginning of the document, use the same setup as above but insert \clearpage after the third \end{figure} statement.

Related Question