[tex-eplain] changing hoffset according to odd or even page

Stepan Kasal kasal at ucw.cz
Fri Oct 29 08:07:02 CEST 2004


Hello,

On Fri, Oct 29, 2004 at 01:20:30AM +0200, Gerald Tenenbaum wrote:
> Is there a simple way (well, a way) to assign a 
> value to \hoffset (or \leftmargin) for odd pages 
> and another value for even pages ?

you have to change it inside the output routine.
One possible trick is to put a global assignment to headline or
footline.  See the example below.

Regards,
	Stepan Kasal

\input eplain

\headline = {\hfil
	\global\hoffset =
		\ifodd\pageno
			-1cm
		\else
			7cm
		\fi
}

slon
\vfill\eject
slon
\vfill\eject
slon
\bye



More information about the tex-eplain mailing list