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.

In a book project, using \geometry{letterpaper}, there are occasional places where an oversize diagram has to be included — one much wider than a normal page — without being reduced or spread across pages. But I don't want all the other pages to be oversize, as well.

What options do I have for allowing individual pages to be oversize, on an ad hoc basis? (\geometry cannot be re-declared in the body of the document).

share|improve this question
    
did you have a look at the changepage package? I've never used it seriously myself, so I don't know whether it'll do what you want. –  gniourf_gniourf Nov 4 '12 at 20:24
add comment

1 Answer 1

up vote 7 down vote accepted

Taken in part from the UK TeX FAQ entry Changing margins “on the fly”:

Horizontal adjustment:

The changepage package provide a localized width adjustment of the text block with the adjustwidth environment. The typical usage would be

\begin{adjustwidth}{-1cm}{-1cm}
  %<stuff>
\end{adjustwidth}

if you wish the text block to extend 1cm out of the margin on both sides of the text block. An extension to this in the form of a layout change on a per-page basis is offered by changelayout.

memoir provides an analogous adjustwidth (and starred variant for twoside mode accommodation) which works in a similar way and takes similar arguments.

fullwidth is another package that follows in the footsteps of mdframe by allowing page breaks within the margin adjustments.

From the KOMA-Script documentation (section 3.18 Lists, p 106):

Similar to quote and quotation, the addmargin environment changes the margin. In contrast to the first two environments, with addmargin the user can set the width of the indentation. Besides this, this environment does not change the indentation of the first line nor the vertical spacing between paragraphs.

The addmargin and addmargin* environments function in the same way memoir's adjustwidth does.

Alternatively, setting the content in a box that fits within the text boundary will make TeX happy, yet allow the content to extend beyond the text block margins. For example,

\begin{figure}
  \makebox[\textwidth]{\includegraphics[..]{...}}% Automatically centred
  \caption[..]{...}
  \label{...}
\end{figure}

The adjustbox package provides similar means for manipulating the bounding box of its content, and interacts well with the key-value parameters of \includegraphics via its export package option.

Vertical adjustment:

You can use \enlargethispage{<len>} to increase the current page by <len>. Or there's the addlines package that provides an analogous \addlines macro.

All of the above discussions are independent of the content being included.

share|improve this answer
    
Thank you. I think I should have explained that these diagrams will generally be much wider than a normal page, rather than much longer. I will edit the original post. –  brannerchinese Nov 5 '12 at 4:26
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.