Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have an article:

\documentclass[a4paper,12pt,oneside]{article}

Now in a section I have a figure:

\begin{figure}
\centering
\includegraphics[scale=0.65]{images/rlexample.png}
\caption{---}
\label{rlexample}
\end{figure}

This figure is pretty big, so I would like to show them in a single page without the classic top margin. Is there anyway to specify a negative top margin just for showing this figure?

Solution

Thanks to Prof. @egreg the solution is (with pagenumber hiding)

\begin{figure}
\centering
\vspace*{-3cm}
\includegraphics[scale=0.6]{images/rlexample.png}
\caption{---}
\label{rlexample}
\end{figure}

\thispagestyle{empty}
share|improve this question
1  
You can try adding \vspace*{-3cm} just after \centering (adjust to suit). –  egreg Nov 22 '12 at 17:00
    
Thanks a lot it works. Also can I hide the page number ? Because it appears to be over my image. If you want make an answer i will accept –  dynamic Nov 22 '12 at 17:24
    
\maketitle \thispagestyle{empty} \pagestyle{empty} will do the trick. Please post an answer I will accept it –  dynamic Nov 22 '12 at 17:26
    
And... Incredibile come grazie a stackexchange.com due italiani si siano incontrati qui :) –  dynamic Nov 22 '12 at 17:31
    
PS. the solutino with \pagestyle it isn't working well. (it hides page number on the previous page too) I have opened a new question: tex.stackexchange.com/questions/83860/… –  dynamic Nov 22 '12 at 21:49

1 Answer 1

up vote 4 down vote accepted

You just need to make LaTeX think that the image takes less vertical space:

\begin{figure}
\centering
\vspace*{-3cm}
\includegraphics[scale=0.6]{images/rlexample.png}
\caption{---}
\label{rlexample}
\end{figure}

In order to safely remove the header and footer, you need to use fancyhdr and its \iffloatpage macro.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.