This question led to a new package:
fullwidth
This is a followup to a similar question. The idea is to switch between two different margin sizes. The answer provided by @godbyk work very well. However, it is difficult if you are using an asymmetric page layout (e.g. \documentclass[twoside]{article}
and the fullwidth
environment spans over two pages. Is it possible to make it work in these cases, too?
The memoir manual states:
Note that the
adjustwidth
environment applies to complete paragraphs; you can’t change the width of part of a paragraph except for hanging paragraphs or more esoterically via\parshape
. Further, if the adjusted paragraph crosses a page boundary the margin changes are constant; a paragraph that is, say, wider at the right on the first page will also be wider at the right as it continues onto the following page.
So, how to do it esoterically ;)
MWE:
\documentclass[twoside]{article}
\usepackage{changepage}% provides the adjustwidth environment
% The following code should be used *after* any changes to the margins and
% page layout are made (e.g., after the geometry package has been loaded).
\newlength{\fullwidthlen}
\setlength{\fullwidthlen}{\marginparwidth}
\addtolength{\fullwidthlen}{\marginparsep}
\newenvironment{fullwidth}{%
\begin{adjustwidth*}{}{-\fullwidthlen}%
}{%
\end{adjustwidth*}%
}
\usepackage{lipsum}% provides dummy text
\begin{document}
\lipsum[1]
\begin{fullwidth}
\lipsum[2-10]
\end{fullwidth}
\lipsum[3]
\end{document}
esoteric
mean for paragraphs only, i.e., you can make a sort of a shaped hole in a paragraph.adjustwidth
. The block of text should accommodate page breaking and be able to switch between adjusting for the left (\marginparwidth+\marginparsep
) on even pages, but for the same amount on the right for odd pages. So, theadjustwidth
environment should switch accordingly from one margin adjustment to another, depending on the current page. Am I correct @Andy?\begin{fullwidth} \lipsum[2-10] \end{fullwidth}
after\lipsum[3]
; perhaps the OP could do so.