Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
1  
I recommend using the geometry package. –  azetina Oct 7 '12 at 12:44
    
Would you please be more specific? What diagrams are you referring to? –  egreg Oct 7 '12 at 12:52
    
@egreg: Sorry, I meant the figures. –  Neil G Oct 7 '12 at 12:55
2  
memoir has the adjustwidth environment for changing the margins locally. –  Torbjørn T. Oct 7 '12 at 13:30
1  
See if tex.stackexchange.com/questions/74948/… helps –  Torbjørn T. Oct 7 '12 at 13:32
show 5 more comments

1 Answer

up vote 13 down vote accepted

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

share|improve this answer
    
Perfect. This is exactly what I wanted! –  Neil G Oct 7 '12 at 17:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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