Is it possible to have it so that the text has smaller left and right margins than figures? I am using memoir.
Asked
Active
Viewed 1,722 times
9
1 Answers
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}

geometrypackage. – azetina Oct 07 '12 at 12:44\makeboxor\centeringaffect the margins of the figures. – azetina Oct 07 '12 at 12:59memoir? – Neil G Oct 07 '12 at 13:14memoirhas theadjustwidthenvironment for changing the margins locally. – Torbjørn T. Oct 07 '12 at 13:30geometrypackage should not be used withmemoir.memoirinclude its own commands to deal with these things. – Jesper Ipsen Oct 07 '12 at 14:40