5

I would like to change the margin for an image only, I've used

\newgeometry{left=0.5cm,bottom=0.1cm,right=0.5cm}
\includegraphics{tada.png}
\restoregeometry

But it affects an entire page

ElChapo
  • 151
  • The fullwidth package could help; see https://www.ctan.org/pkg/fullwidth?lang=en – JPi Aug 23 '16 at 14:27
  • http://tex.stackexchange.com/questions/35933/indenting-a-whole-paragraph – cmhughes Aug 23 '16 at 14:44
  • 1
    is the image wider or narrower than the usual text block? it should be possible to pack it into a minipage and use positive or negative \hspaces to "adjust" the apparent size of the minipage. – barbara beeton Aug 23 '16 at 15:28

2 Answers2

1

for local extension of text width for one equation or image you can use changepage package and his macro adjustwidth:

% preamble ...
\usepackage[sctrict]{changepage}
% ...

\begin{figure}
    \begin{adjustwidth}{0.5cm}{0.5cm}
    \includegraphics[width=\linewidth]{Organigramme.png}
    \end{adjustwidth}
  \end{figure}
% ...
Zarko
  • 296,517
0

Thank's to comment I got it to work using minipage and negative \hspace

  \begin{figure}\centering
    \begin{minipage}[c]{\textwidth}
    \hspace{-2.85cm}
    \includegraphics[scale=0.55]{Organigramme.png}
    \end{minipage}
  \end{figure}
ElChapo
  • 151
  • Don't put a figure environment inside a center environment like that, the figure could easily float away, and then you're left with some unwanted vertical space generated by the center environment. To center the contents of a figure environment add \centering right after \begin{figure}. – Torbjørn T. Aug 24 '16 at 07:54
  • 1
    The minipage is not needed; just use \hspace*{<dim>}% – egreg Aug 24 '16 at 19:56