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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
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: 9201
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
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: 9201
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
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