Graphics, Figures & TablesWhole page figure

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
kees
Posts: 3
Joined: Wed May 27, 2009 2:43 pm

Whole page figure

Post by kees »

Hi all,

Just registered at this forum.
I am writing my M.S.-thesis in Latex.
I have problem concerning a figure.
My documentclass is :
\documentclass[a4paper,12pt]{book}

The problem is:
I want a floating figure to fill up a whole page (it's a map of an area),
so on the specific page were the figure will end up, no headers, footers, page numbers etc. must be visible. And no margins either (preferably very small margins which I am able to assign) I already succeeded to a certain degree, but I can't get loose of the header on top.

At the moment I have:


Code: Select all

\newlength{\PictHOffset}
\setlength{\PictHOffset}{1in}
\addtolength{\PictHOffset}{\hoffset}
\addtolength{\PictHOffset}{\oddsidemargin}
\addtolength{\PictHOffset}{-0.1in}
\addtolength{\paperwidth}{-0.12in}



\begin{figure}[htp]
\centering
\noindent\hspace*{-\PictHOffset}
\framebox{\includegraphics[angle=90,width=\paperwidth,height=0.80\paperheight]{IMAGES/Geographical_map.eps}}
\label{fig:Map}
\end{figure}
Does anyone of you knows a solution.
I don't need a caption and the figure must floot in the chapter it's in.
Thanks in advance!

Recommended reading 2024:

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

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

fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Whole page figure

Post by fatra2 »

Hi there,

To "get loose" of the header, you could use something like this:
in the preamble

Code: Select all

\usepackage{fancyhdr}
Just before defining your figure environment with your map into it

Code: Select all

\pagestyle{empty}
Just after your figure environment

Code: Select all

\pagestyle{plain}
Hope this helps

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

Whole page figure

Post by localghost »

kees wrote:[...] I want a floating figure to fill up a whole page (it's a map of an area), so on the specific page were the figure will end up, no headers, footers, page numbers etc. must be visible. And no margins either (preferably very small margins which I am able to assign) I already succeeded to a certain degree, but I can't get loose of the header on top. [...]
It could be helpful to know more details about the format of the final output and the graphics format of other included files.


Best regards and welcome to the board
Thorsten
kees
Posts: 3
Joined: Wed May 27, 2009 2:43 pm

Whole page figure

Post by kees »

Thanks for your responses!
I thought if I add the following added before the start of the document things must work out.

Code: Select all

\fancyhead{\iffloatpage{}{\fancyhead}}
\fancyfoot{\iffloatpage{}{\fancyhead}}
However they don't?
As I have documentclass: book, \fancyhead and \fancyfoot already have default values. These I would like to maintain except for the figure that I now have given the following code ([p] instead of [htp]):

Code: Select all

\begin{figure}[htp]
\centering
\noindent\hspace*{-\PictHOffset}
\framebox{\includegraphics[angle=90,width=\paperwidth,height=0.80\paperheight]{IMAGES/Geographical_map.eps}}
\label{fig:Map}
\end{figure}
Is there something wrong with my \iffloatpage statements??
Furterhmore the \pagestyle{empty} \pagestyle{plain} doesn't work out, as it removes the header from a page earlier...
Post Reply