# figures and \includepdf problems [duplicate]

I'm having a problem: I have to put a pdf (multi-page) file in a LaTeX document. But, when I do this, all the figures from the chapter appear after the document. I'm using:

\begin{figure}[!htbp]...\end{figure}


and after some text and lines

\includepdf[pages=1-24, scale=0.95, pagecommand={\thispagestyle{plain}}]{document.pdf}


What can I do to force \includepdf to appear after the figures? I tried \pagebreak and \newpage and none of them helped.

Thanks!

## marked as duplicate by Mensch, Sebastiano, Stefan Pinnow, user121799, user156344 Apr 1 at 4:36

• Use \clearpage. – Ulrike Fischer Sep 7 '18 at 21:36
• You might also look at the afterpage package, so as to not waste space. – John Kormylo Sep 9 '18 at 15:18

You can force the figures to appear within a certain section of text with \floatbarrier before and after the figures.

You can find this command from the placeins package

Good luck!

Edit for worked sample request:

\usepackage{placeins}

\floatbarrier
\begin{figure}[!htbp]...\end{figure}
\floatbarrier

\includepdf[pages=1-24, scale=0.95, pagecommand={\thispagestyle{plain}}]{document.pdf}

• Welcome to TeX.SX! – user156344 Dec 1 '18 at 20:06
• This looks more like a comment than an answer: could you either (a) elaborate on your suggestion, in particular including a Minimal Working Example, or (b) suggest an existing answer that already does so? – GuM Dec 1 '18 at 20:22