EDIT: I should have given a MWE based on memoir (which I am using) where the inner and outer margins are initially different. I would like the margins to be the same in that new environment. (Inner margin is the left margin on odd number pages and the right margin on even number pages ... or the other way around.)
I would like to be able to define an environment that
- changes the width of the text;
- changes the number of columns;
- adds a background color;
- works across page boundaries.
So far, the best I can get is three out of four; items 2 and 3 seem to be non-compatible choices.
Here's a MWE which shows the intent. (Unfortunately, like the documentation states, adjusmulticols and mdframed are not compatible.)
\documentclass{article}
\usepackage{adjmulticol}
\usepackage{mdframed}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
%\begin{mdframed}[background=yellow]
\begin{adjmulticols}{2}{-1in}{-1in}
\lipsum
\end{adjmulticols}
%\end{mdframed}
\begin{mdframed}[backgroundcolor=yellow,leftmargin=-1,rightmargin=-1]
%\begin{adjmulticols}
\lipsum
%\end{adjmulticols}
\end{mdframed}
\end{document}


adjmulticolsfor that, but the relevant code by David is in the\page@sofarhack, so this should hopefully also work withadjmulticols. – Stephan Lehmke Apr 04 '12 at 17:27quoteenv but with negative rather than positive offset) I just took a cm off each margin, so whatever relationship between the margins and odd and even pages held before should still hold, apart from being reduced? – David Carlisle Apr 04 '12 at 18:39\moveright\multicol@leftmarginso you'd just want that shift to be side dependent. – David Carlisle Apr 04 '12 at 19:09