[texhax] Mirrored margins with Plain TeX?

Marcel Korpel marcel.lists at gmail.com
Thu Nov 15 21:48:02 CET 2007


On 15/11/2007, Kate Hayes <khayes at ppi2pass.com> wrote:
> I'm being asked to write an output routine for a one-column layout
> with mirrored margins.

What I do is centering the main text on the page like

\pdfpagewidth=148.5mm
\pdfpageheight=210mm
\pdfhorigin=20.75mm
\pdfvorigin=18mm
\hsize=107mm
\vsize=173mm


and then put this centered box to the binding side of the pages by
variering \hoffset in the output routine:

\def\onepageout{\ifodd\pageno\hoffset=2mm\else\hoffset=-2mm\fi
  \shipout\vbox{\makeheadline
  \pagebody
  \makefootline}
\advancepageno
\ifnum\outputpenalty>-20000 \else\dosupereject\fi}

I hope this helps.

Kind regards,
Marcel Korpel


More information about the texhax mailing list