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.
Post Reply
keckema
Posts: 2
Joined: Sun Aug 31, 2008 8:24 pm

wide graphics jut out from text on right AND left margin

Post by keckema »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

wide graphics jut out from text on right AND left margin

Post by Stefan Kottwitz »

Hi Gereon,

welcome to the board!
You could use \makebox:

Code: Select all

Code, edit and compile here:
\begin{figure}
\centering
\makebox[\textwidth]{\includegraphics[width=1.7\textwidth]{example}}
\end{figure}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
keckema
Posts: 2
Joined: Sun Aug 31, 2008 8:24 pm

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

Post by keckema »

Thanks a lot, Stefan. Your suggestion works fine.

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

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

Post by Stefan Kottwitz »

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.org admin
Post Reply