9

Is it possible to have it so that the text has smaller left and right margins than figures? I am using memoir.

yo'
  • 51,322
Neil G
  • 17,947

1 Answers1

11

The method described by Werner in his answer can be extended to figures also to make captions spill outside margins. To make figures go beyond margins and keep them at center, you can use adjustbox package.

\documentclass{memoir}
\usepackage{lipsum}
\usepackage[demo]{graphicx} %remove demo in your file.
\usepackage[export]{adjustbox}
\usepackage{letltxmacro}
\LetLtxMacro{\originalfigure}{\figure}
\LetLtxMacro{\originalendfigure}{\endfigure}
\renewenvironment{figure}[1][htb]%
  {\originalfigure[#1]% \begin{figure}[htb]
   \begin{adjustwidth*}{-.5in}{-.5in}
  }%
  {\end{adjustwidth*}\originalendfigure}% \end{figure}


\begin{document}
\lipsum[1]
\begin{figure}[htb]
\adjincludegraphics[width=1.2\textwidth,center]{figure}
\caption{This is a one big caption that may run in to more than two lines without any trouble to us in setting more margins}\label{fig:figure-chow}
\end{figure}
\lipsum[1]
%
\end{document}

enter image description here