Graphics, Figures & TablesForce image to be on its own (static) page

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
CJFugate
Posts: 12
Joined: Thu Aug 23, 2012 11:47 pm

Force image to be on its own (static) page

Post by CJFugate »

I have an image that with its caption takes up more or less a whole page. I'd like to see something like -

page 1
Section 1. This is the section where I describe the figure
Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah Blah Blah Blah Blah Blah Blah
Section 2. This is a new section unrelated to the figure
new text new text new text new text
new text new text new text new text
page 2
*************************************
* Figure *
**************************************


However, if I add the code for the figure where I'd like it to be

Code: Select all

\begin{figure}[H]
\begin{center}
\includegraphics[scale=1]{chapterOne/Fig6.pdf}
\caption{this is my figure}
\end{center}
\end{figure}
the image gets forced to a new page after ALL THE CODE I PUT AFTER IT. If I try to use \newpage just before the image I get something that looks like -
page 1
Section 1. This is the section where I describe the figure
Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah Blah Blah Blah Blah Blah Blah
Blah Blah Blah
page 2
Blah Blah Blah Blah Blah
*
* Empty white space
*
page 3
*************************************
* Figure *
**************************************
page 4
Section 2. This is a new section unrelated to the figure
new text new text new text new text
new text new text new text new text

I don't want all the empty white space. I hope this makes sense! 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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Force image to be on its own (static) page

Post by localghost »

The only way to get a figure on its own page is by using the p placement parameter. And to get its output as soon as possible a combination with ! is advisable.

Code: Select all

\begin{figure}[!p]
% figure content
\end{figure}
Note that the text which still appears before the figure depends on the space that is left on the page before the figure can be processed. Nevertheless the figure still can float but should appear very soon with not to much distance to the place where it was declared i the source. At the latest on the next page.


Thorsten
Post Reply