[solved] plain TeX: different margins for odd and even pages
Philip Taylor (Hellenic Institute)
elliniko.institouto at gmail.com
Sun Oct 26 11:12:11 CET 2025
On 25/10/2025 22:55, Rodolfo Medina wrote:
> In `pure' plain TeX, for me it also works with, more simply:
> \hoffset=-1in
> \voffset=-1in
> \special{papersize=420mm,297mm}
> \hsize=365 true mm
> \vsize=297 true mm
> \advance\voffset by5mm
> \advance\vsize by-10mm
> \newtoks \Knuthput
> \Knuthput = \output
> \output = {\ifodd \pageno \advance \hoffset by5mm \else \advance
> \hoffset by50mm \fi \the \Knuthput}
Yes, if you prefer to eschew e-TeX's \<whatever>expr primitives, that is
indeed a valid solution. Well done Rodolfo.
--
/** Phil./
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20251026/d1b0fbc9/attachment.htm>
More information about the texhax
mailing list.