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
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
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}
% ...
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}
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
minipageand use positive or negative\hspacesto "adjust" the apparent size of theminipage. – barbara beeton Aug 23 '16 at 15:28