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.

  • 1
    You could remove the figure enviromnment for the six figures. If you need captions for the figures, use the captionof command from the capt-of package. \FloatBarrier from the placeins package might also be an option if you want to stick to the figure environment.
    – leandriis
    Apr 15 '18 at 13:07

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.

\usepackage[demo]{graphicx} % remove 'demo' option in real doc.

\lipsum[1] % filler text

\caption{First figure}
\vspace{1in} % or whatever spacing is appropriate
\caption{Second figure}
\caption{Third figure}
\caption{Fourth figure}
\caption{Fifth figure}
\caption{Sixth figure}

\lipsum[2-10] % more filler text

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.

  • For clarity this problem is occurring in the middle of a large paper. I tried using [p] as you suggest but it places the figures at the end of the document rather than in the middle. EDIT: I have solved the problem using multiple vspace commands to manually space it. Not the prettiest solution but it did the job
    – James Hunt
    Apr 15 '18 at 13:49
  • @JamesHunt - If using [p] forces the floats to show up at the very end of the document, the root cause is almost certainly that the heights of the floats exceed the value of \textheight. (Aside: Have you tried reducing the argument of \vspace to something less than 1in?) Anyway, changing the placement directives from [p] to [p!] and inserting \clearpage immediately after the third figure envirionment should fix the issue.
    – Mico
    Apr 15 '18 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.