Banner

Donate

You find LaTeX Community useful? Please donate! Learn why!

Amount:

Partner Sites

goLaTeX
TeXblog
TeXnicCenter

Who is online

In total there are 22 users online :: 2 registered, 0 hidden and 20 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Tue Jun 08, 2010 3:33 pm

Users browsing this forum: Alexa [Bot], Google [Bot] and 20 guests

wide graphics jut out from text on right AND left margin

LaTeX specific issues not fitting into one of the other forums of this category.

wide graphics jut out from text on right AND left margin

Postby keckema on Sun Aug 31, 2008 7:38 pm

Hi everyone,

I often use graphics in articles which are quite wide so that they jut out from the text body. I use the following code:


\begin{figure}
\centering
\includegraphics[width=1.15\textwidth]{example.jpg}
\end{figure}


My problem: These graphics only jut out from text on the right text margin. But I want them to jut out from the text symmetrically, i. e. to jut out on the right AND the LEFT margin in the same way.
Could anyone tell me the proper command?

Thanks a lot, Gereon
keckema
 
Posts: 2
Joined: Sun Aug 31, 2008 7:24 pm

Re: wide graphics jut out from text on right AND left margin

Postby Stefan_K on Sun Aug 31, 2008 7:41 pm

Hi Gereon,

welcome to the board!
You could use \makebox:
Code: Select all
\begin{figure}
\centering
\makebox[\textwidth]{\includegraphics[width=1.15\textwidth]{example}}
\end{figure}

Stefan
LaTeX Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany

Re: wide graphics jut out from text on right AND left margin

Postby keckema on Mon Sep 08, 2008 9:58 pm

Thanks a lot, Stefan. Your suggestion works fine.

Gereon
keckema
 
Posts: 2
Joined: Sun Aug 31, 2008 7:24 pm

Re: wide graphics jut out from text on right AND left margin

Postby Stefan_K on Mon Sep 08, 2008 10:12 pm

Hi Gereon,

nice to hear that it helped. I just noticed that you could even omit the \centering of my example because \makebox uses \textwidth - I'm just used to give \makebox the width 0pt but with \centering what would work too.

Stefan
LaTeX Community Moderator
TeXblog.net
Stefan_K
Site Moderator
 
Posts: 2687
Joined: Mon Mar 10, 2008 8:44 pm
Location: Hamburg, Germany


Return to General

Who is online

Users browsing this forum: Alexa [Bot], Google [Bot] and 20 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group