Is there an existing package that does the same thing as adjustwidth from changepage, but automatically switches inner and outer margins?
MWE:
\documentclass[twoside]{book}
\usepackage{multicol}
\usepackage{changepage}
\usepackage{lipsum}
\usepackage{showframe}
\begin{document}
\lipsum
\begin{adjustwidth}{}{-7pc}
\lipsum[3-56]
\end{adjustwidth}
\end{document}
The above document will always place extend the margins to the right by -7pc, for text within the adjustwidth environment.
If I use the adjustwidth* environment instead, then
- If environment starts on an even page, then it will extend the margin to the left for the entire duration (since that is the local "outer margin" at the start of the enviornment)
- If environment starts on an odd page, then it will extend the margin to the right for the entire duration.
What I want is an environment that extends always to the correct outer margin when the environment crosses page boundaries.
\lipsum
\begin{adjustwidth}{-7pc}{0pc} \lipsum[3-56] \end{adjustwidth}
\end{document}
– Rajesh N Nov 18 '19 at 15:12scrextendpackage). It has the advantage that, when you run across a page boundary, it tells you: "Aaddmargin*environment starting on page 2 ends on page 10. This will result in potential wrong margins on every other page. So maybe you should change theaddmargin*environment, that ends on input line 10." – Willie Wong Nov 18 '19 at 15:57