Graphics, Figures & TablesStretch Figure in Header

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

Stretch Figure in Header

Post by manojg »

Hi everybody,

I have a large figure, and I want to stretch it beyond margin. I can stretch it in left and right by \advance\leftskip-3cm and \advance\rightskip-3cm. But I could not do it for top by using \advance\topskip-3cm. It does not work. Any other way to do this?

Thanks. :)

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Stretch Figure in Header

Post by localghost »

It would increase your chance for qualified answers if you submit a minimal example. This way we can see what you do and test possible solutions without doing random shots.


Best regards and welcome to the board
Thorsten
manojg
Posts: 24
Joined: Thu Apr 28, 2011 3:20 am

Stretch Figure in Header

Post by manojg »

Code: Select all

\begin{figure}[h!]
    \begin{center}
         \advance\leftskip-4cm
         \advance\rightskip-2cm
         \resizebox{20cm}{20cm}{\includegraphics{fig}}
     \end{center}
\end{figure}
Above code stretch the figure in left by 4cm and right by 2 cm, beyond margin. I want to stretch in top also. If I put \advance\topskip-5cm, it does not work.

I spent more than an hour googleing about this but I could not find the solution, so I posted here for help.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Stretch Figure in Header

Post by localghost »

This is no MWE, thus the problem is still incomprehensible. Please follow the link in my last reply and instructions there. A MWE is a complete document that reproduces the undesired behaviour clearly and not just a useless code snippet. But if you want to have a figure in the header, you should not put it in a float environment.
Post Reply