in some (very rare) cases, it might be desirable to have the type area, particularly the text width, be different on even and odd pages. Let's say we're typesetting a textbook that's supposed to have small illustrations or annotations in the margin of the odd pages -- so we'd need a narrower type area on these. Like this:
Here's an attempt at a solution I came up with. It isn't as smart as I thought it was. I thought we might just combine everyshi
and an \ifthispageodd
test to change the typearea at every shipout. Obviously, that's not how it works:
\documentclass[paper=a5,pagesize,10pt,DIV=12,twoside=true]{scrreprt}
\usepackage{everyshi,blindtext}
\EveryShipout{%
\ifthispageodd{\areaset{6cm}{12cm}}{\areaset{9cm}{12cm}}}
\begin{document}
\Blinddocument
\end{document}
this results in:
! Bad space factor (0).
<recently read> \@savsf
l.7 \Blinddocument
Is there a way to improve this? Or something entirely different?
\parshape
that chages the length at each break.