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

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

Figure placement when using [p!] (page)

Postby hughes » Tue Sep 22, 2009 12:45 am

I'm trying to get each figure on its own page for a dissertation (document class book), so (using graphicx) I declared:
  1. \begin{figure}[p!tb]
  2. ...
  3. \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

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Sep 22, 2009 1:19 am

Hi,

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

Stefan
Site admin

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Tue Sep 22, 2009 9:43 am

Put the exclamation mark first in the option list.
  1. \begin{figure}[!p]
  2. % figure contents
  3. \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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby HypnosiS » Tue Sep 22, 2009 2:05 pm

hughes wrote:I'm trying to get each figure on its own page for a dissertation (document class book), so (using graphicx) I declared:
  1. \begin{figure}[p!tb]
  2. ...
  3. \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:
  1. \usepackage{afterpage}
  2. ...
  3. \afterpage{\clearpage}

Also check this topic I asked similar question: viewtopic.php?f=5&t=5903

User avatar
localghost
Site Moderator
Posts: 9204
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Tue Sep 22, 2009 6:09 pm

HypnosiS wrote:[...] Also check this topic I asked similar question: viewtopic.php?f=5&t=5903

This is not relevant to the problem discussed here because of a completely different environment for the figure.
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ 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

Postby keepitcoolkev » Tue Feb 12, 2019 5:16 pm

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:
  1. \begin{figure}
  2. ...
  3. \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.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests