Re: plain TeX: different \hsize and \vsize for odd and even pages (was: plain TeX: different margins for odd and even pages)

David Carlisle <[email protected]> Wed, 8 Apr 2026 21:34:35 +0100
Newsgroups gmane.comp.tex.texhax
Message-ID <CAEW6iOhuWUZ1+M_C=Amj+js-Rbxi34STvevHaXN7tR-QK8ox0w@mail.gmail.com>
--000000000000aec9bf064ef8d4a6
Content-Type: text/plain; charset="UTF-8"

 >  \global\hsize=\oddhsize

yes but only if, as in your example, all page breaks are forced.

if you have any paragraphs breaking over a page (as happens in most
documents)  that doesn't really work, as a paragraph is broken in to lines
with a fixed \hsize (the value in force at the end)  so to change hsize mid
paragraph you need to guess how many lines are in the first page, then set
up a parshape that uses one linewidth for that many lines and then the
hsize for the remaining lines for the new page.

David

--000000000000aec9bf064ef8d4a6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>=C2=A0&gt;=C2=A0
\global\hsize=3D\oddhsize</div><div><br></div><div>yes but only if, as in y=
our example, all page breaks are forced.</div><div><br></div><div>if you ha=
ve any paragraphs breaking over a page (as happens in most documents)=C2=A0=
 that=C2=A0doesn&#39;t really work, as a paragraph is broken in to lines wi=
th a fixed \hsize=C2=A0(the value in force at the end)=C2=A0 so to change h=
size mid paragraph you=C2=A0need to guess how many lines are in the first p=
age, then set up a parshape that uses one linewidth for that many lines and=
 then the hsize for the=C2=A0remaining lines for the new page.</div><div><b=
r></div><div>David</div><div><br></div><div><br></div><div><br></div></div>

--000000000000aec9bf064ef8d4a6--