194

I have the following towards the end of an article. The bibliography is short (4 entries).

What's happening is that on the very last page of document I get the chart and immediately afterwards the References section, despite the \newpage directive. While I personally prefer everything on one page, I have a requirement to put the references on a different page. Is LaTeX ignoring \newpage because it finds plenty of space to use on that page? If so, I'm confused why it does so even when told explicitly to start a new page.

I cannot post the entire article so hopefully the excerpt below will be helpful.

bla bla bla
bla bla bla
bla bla bla

\begin{figure}[htp]
  \centering
  \includegraphics{my-image}
  \caption{caption here}\label{my-label}
\end{figure}

\newpage
\begin{thebibliography}{99}
1

2 Answers 2

284

Floating figures and tables can move past \newpage, so what is happening is that the \newpage does start a new page, then inserts the figure, then starts the references section.

You want \clearpage, which has the same effect as \newpage but restricts floats as well. If there are pending floats when \clearpage hits, a float page is created only after which the content will continue.

5
  • 17
    Moreover, if you're writing a document with the 'twoside' and 'openright' options (e.g. a book), you want to use \cleardoublepage
    – kahen
    Commented Mar 6, 2011 at 6:07
  • 7
    neither \newpage nor \clearpage nor \cleardoublepage work for me. Any ideas? I have lots of graphics and not much text in my document but latex float placement at the moment is really far off.
    – wirrbel
    Commented May 13, 2013 at 7:55
  • 2
    @holger I suggest searching through tex.sx for float placement help. If still in doubt ask a new question. Commented May 16, 2013 at 11:37
  • 3
    The error was that in the class that I used some package was loaded that made all floats appear at the very end of the page. (endfloat or something like that). Therefore all the other options did not work.
    – wirrbel
    Commented May 16, 2013 at 12:25
  • 2
    \clearpage distributes paragraphs in the following page in a weird way, like \pagebreak does in the page before it. Is there a way to avoid this?
    – vitor
    Commented May 30 at 22:28
16

For me works properly something like this, I force the creation of a new page with the invisible sign.

\clearpage
\newpage
\mbox{~}
\clearpage
\newpage
3
  • 6
    \mbox{} is sufficient
    – egreg
    Commented Sep 20, 2017 at 21:43
  • 6
    \newpage right after \clearpage does nothing.
    – GuM
    Commented Sep 20, 2017 at 22:17
  • 1
    I had the same problem -- I do NOT need "\mbox{~}'' but I do need ``\mbox{}'' as well as that "redundant'' \clearpage command.
    – Wayne Gray
    Commented Feb 28, 2021 at 17:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .