TransWikia.com

Why is newpage ignored sometimes ?

TeX - LaTeX Asked on May 26, 2021

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}

2 Answers

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.

Correct answer by Will Robertson on May 26, 2021

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

clearpage
newpage
mbox{~}
clearpage
newpage

Answered by Arkadiusz Wieczorek on May 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP