Graphics, Figures & TablesFigure placement when using [p!] (page)

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
hughes
Posts: 3
Joined: Tue Sep 22, 2009 12:42 am

Figure placement when using [p!] (page)

Post by hughes »

I'm trying to get each figure on its own page for a dissertation (document class book), so (using graphicx) I declared:

Code: Select all

\begin{figure}[p!tb]
	...
\end{figure}
Figures are put on a separate page, but the page occurs at the end of the chapter. Is there any way to have the figure appear on the page after the first reference to it?

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Figure placement when using [p!] (page)

Post by Stefan Kottwitz »

Hi,

you could use \clearpage to force the output of the figures, further you could combine it with afterpage.

Stefan
LaTeX.org admin
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Figure placement when using [p!] (page)

Post by localghost »

Put the exclamation mark first in the option list.

Code: Select all

\begin{figure}[!p]
  % figure contents
\end{figure}
The other parameters are not necessary if each figure shall appear on its own page like you described.


Best regards and welcome to the board
Thorsten
HypnosiS
Posts: 20
Joined: Sun Sep 21, 2008 2:58 pm

Figure placement when using [p!] (page)

Post by HypnosiS »

hughes wrote:I'm trying to get each figure on its own page for a dissertation (document class book), so (using graphicx) I declared:

Code: Select all

\begin{figure}[p!tb]
	...
\end{figure}
Figures are put on a separate page, but the page occurs at the end of the chapter. Is there any way to have the figure appear on the page after the first reference to it?

Thanks
Type that before figures:

Code: Select all

\usepackage{afterpage}
...
\afterpage{\clearpage}
Also check this topic I asked similar question: http://www.latex-community.org/forum/vi ... f=5&t=5903
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Figure placement when using [p!] (page)

Post by localghost »

HypnosiS wrote:[...] Also check this topic I asked similar question: http://www.latex-community.org/forum/vi ... f=5&t=5903
This is not relevant to the problem discussed here because of a completely different environment for the figure.
keepitcoolkev
Posts: 1
Joined: Tue Feb 12, 2019 5:09 pm

Figure placement when using [p!] (page)

Post by keepitcoolkev »

I am sure the OP has moved on from this question, but I am putting this here for future users. I am also writing my thesis and am having the same problem. You can put the command \clearpage at any point in the document that you want figures with the placement code [!p] to end up on:

Code: Select all

\begin{figure}
...
\end{figure} \clearpage
If I want two sequential figures to have their own pages, I'll write \clearpage after both of the \end{figure} commands. This will create a two new pages that floating, own-page figures can use.
Post Reply