3

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

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}
% ...
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}
  • 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 7:54
  • 1
    The minipage is not needed; just use \hspace*{<dim>}% – egreg Aug 24 '16 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.