121

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}
169

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.

  • 12
    Moreover, if you're writing a document with the 'twoside' and 'openright' options (e.g. a book), you want to use \cleardoublepage – kahen Mar 6 '11 at 6:07
  • 3
    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 May 13 '13 at 7:55
  • 1
    @holger I suggest searching through tex.sx for float placement help. If still in doubt ask a new question. – Will Robertson May 16 '13 at 11:37
  • 1
    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 May 16 '13 at 12:25
  • +1 Awesome, you saved me a lot of headache. Thank you, Will. – chepukha Nov 14 '13 at 7:16
2

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

\clearpage
\newpage
\mbox{~}
\clearpage
\newpage
  • 1
    \mbox{} is sufficient – egreg Sep 20 '17 at 21:43
  • \newpage right after \clearpage does nothing. – GuM Sep 20 '17 at 22:17

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.