Graphics, Figures & TablesPlacing a big figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
pozzyx
Posts: 8
Joined: Fri Jun 18, 2010 12:20 pm

Placing a big figure

Post by pozzyx »

Hello everybody,

I'm having some trouble to place a big figure on my document (class article).

The picture is bigger than one page. I've something like this :

\subsubsection{TITLE 1}
11111111111111111111111111111111111111111...
\subsubsection{TITLE 2}
22222222222222222222222222222222222222222...
\subsubsection{TITLE 3}
MYFIGURE
\subsubsection{TITLE 4}
44444444444444444444444444444444444444444...

The result I'm trying to have is :
Page 1:
----------------------------------------------------
TITLE 1
111111111111111111111111111111111111111111
TITLE 2
222222222222222222222222222222222222222222
----------------------------------------------------

Page 2:
----------------------------------------------------
TITLE 3
MYFIGURE
-----------------------------------------------------

Page 3:
----------------------------------------------------
TITLE 4
444444444444444444444444444444444444444444444444444
----------------------------------------------------

So the hard thing for me is (don't know if it's possible) :
- to push the subsubsection of the figure on a new page (I'm doing it with \clearpage)
- the page have to contain only : subsubsection, figure and caption
- on the following page, we got the rest of text

I'm trying with something like this :

Code: Select all

\clearpage
\subsubsection{TITLE 3}
\begin{figure}[h]
\centering
\includegraphics [height=\textheight]{images/image.png}
\caption{My caption}
\label{my_label}
\end{figure}
The page starts with the new subsubsection with my \clearpage (so it's ok)
But :
- the figure is not on the same page, it's on another page
- the figure's caption is in the footer

Anyone to help me plzzzzzzzzzz ?

Thanks for you help !!!!

Edit : by the way, if I use only \includegraphics [height=\textheight]{images/image.png}, it works like I want but I don't get the figure in the figure's table and I can't put a caption.
Last edited by pozzyx on Sun Jul 04, 2010 6:44 pm, edited 1 time in total.

Recommended reading 2024:

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

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

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Placing a big figure

Post by php1ic »

Try adding the p option to the figure environment to say that it can take up the entire page

Code: Select all

\begin{figure}[hp]
If that doesn't work can you post an MWE, random bits of code are no good.
http://www.latex-community.org/forum/vi ... =37&t=7878
pozzyx
Posts: 8
Joined: Fri Jun 18, 2010 12:20 pm

Placing a big figure

Post by pozzyx »

Thanks for helping me :D

Ok sorry for the bad post :D

The "hp" doesn't work neighter, my picture is in attachment

Here is a more complete code :

Code: Select all

\documentclass[a4paper,12pt, titlepage]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[normalem]{ulem}
\usepackage[french]{babel}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{vmargin}
\usepackage{lipsum}
\usepackage[titles]{tocloft}
\setpapersize{A4}

\setlength{\headheight}{15pt}

\begin{document}

\renewcommand{\baselinestretch}{1.2}

\pagestyle{fancy}
\rhead{Blup blup blup}
\chead{}
\lhead{\leftmark}
\rfoot{\thepage}
\cfoot{}
\lfoot{\textsc{PoZZyX Corp.}}

\setlength{\parskip}{0ex}
\setlength{\cftbeforesecskip}{0ex}

\section{Section 1}
\subsection{1.1}
\subsubsection{Title 1}
\lipsum

\subsubsection{Title 2}
\lipsum

\clearpage
\subsubsection{Title 3}
\begin{figure}[hp]
\centering
\includegraphics [height=\textheight]{test.png}
\caption{Schéma de fonctionnement du logiciel HAM}
\label{fonctionnemnent_detaille_ham_schema}
\end{figure}

\subsubsection{Title 4}
\lipsum
\end{document}
Attachments
Picture to add
Picture to add
test.png (44.79 KiB) Viewed 9059 times
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Placing a big figure

Post by php1ic »

Try using

Code: Select all

\begin{figure}[!h]
to force the placement.

That works for me with the example you posted.
pozzyx
Posts: 8
Joined: Fri Jun 18, 2010 12:20 pm

Placing a big figure

Post by pozzyx »

Sorry but doesn't work by me with !h
my result
my result
test.png (14.44 KiB) Viewed 9054 times
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: Placing a big figure

Post by php1ic »

?! Strange. Not sure if it matters, but how are you creating the pdf? I used pdflatex.

Take a look at this webpage
http://mintaka.sdsu.edu/GF/bibliog/latex/floats.html

Try altering the \topfraction and \bottomfraction values of your document.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Placing a big figure

Post by localghost »

Drop the figure environment and use the \captionof command provided by the caption package to prevent the figure from floating. Read the package manual to learn how to handle this command. Note that you have to scale your figure accordingly because you have not the complete text height available and take the caption into account.


Best regards
Thorsten
php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Re: Placing a big figure

Post by php1ic »

Reading Localghost's post, I realised that when I said it works for me, I had also changed the scale to 0.8\textheight for the same reasons that he mentions.

Sorry :oops:
pozzyx
Posts: 8
Joined: Fri Jun 18, 2010 12:20 pm

Re: Placing a big figure

Post by pozzyx »

It works with scaling !!!


Thank you a lot !!!
Post Reply