LaTeX forum ⇒ Generalwide graphics jut out from text on right AND left margin

LaTeX specific issues not fitting into one of the other forums of this category.
keckema
Posts: 2
Joined: Sun Aug 31, 2008 8:24 pm

wide graphics jut out from text on right AND left margin

Postby keckema » Sun Aug 31, 2008 8: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

User avatar
Stefan Kottwitz
Site Admin
Posts: 9436
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Sun Aug 31, 2008 8:41 pm

Hi Gereon,

welcome to the board!
You could use \makebox:
  1. \begin{figure}
  2. \centering
  3. \makebox[\textwidth]{\includegraphics[width=1.15\textwidth]{example}}
  4. \end{figure}

Stefan
Site admin

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

Postby keckema » Mon Sep 08, 2008 10:58 pm

Thanks a lot, Stefan. Your suggestion works fine.

Gereon

User avatar
Stefan Kottwitz
Site Admin
Posts: 9436
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Mon Sep 08, 2008 11: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
Site admin


Return to “General”

Who is online

Users browsing this forum: No registered users and 6 guests