Re: plain TeX: different \hsize and \vsize for odd and even pages

Rodolfo Medina <[email protected]> Thu, 16 Apr 2026 15:43:23 +0000
Newsgroups gmane.comp.tex.texhax
Message-ID <87ldemud0k.fsf@lenovo>
Rodolfo Medina <[email protected]> writes:

> Rodolfo Medina <[email protected]> writes:
>
>> [...] suppose I want to set different margins for add and even pages, say
>> 5mm left and 10mm right for odd pages and the opposite for even pages:
>> please suggest whoever can a proper way to do it.
>
>
> Solved that problem with listers TeX-perts' help, now suppose I want to do
> the same with \vsize and \hsize, i.e. set a different \vsize (and/or \hsize)
> value from odd to even pages: is it possibile?  I mean in `pure' plain TeX.


Thanks to all those who helped: as suggested, for \vsize, something like the
following solution placed in the output routine seems to work:


\ifodd\pageno
    \global\vsize=20cm
  \else
    \global\vsize=15cm
  \fi

whereas for \hsize I understand there's no solution in classical plain TeX also
because I want to apply such a differentiated odd/even use of \hsize within
MusiXTeX documents, perchance in a complex situation.

Rodolfo