[NTG-context] layers for odd and even pages

Wolfgang Schuster schuster.wolfgang at gmail.com
Tue Jan 20 23:39:58 CET 2015

> Am 20.01.2015 um 20:14 schrieb Pablo Rodriguez <oinos at gmx.es>:
> Dear list,
> I have the following sample:
> \setuppapersize[A5]
> \setuppagenumbering[alternative=doublesided,location=]
> \definelayer[testodd][state=start]
> \setlayer[testodd]{Odd page}
> \definelayer[testeven][state=continue]
> \setlayer[testeven]{Even page}
> \setupbackgrounds[page][background={testodd, testeven}]
> \starttext
> \dorecurse{5}{\dorecurse{\recurselevel}{\input zapf\par}\page[right]}
> \stoptext
> I need different layers in even and odd pages and that they are hidden
> on empty pages.
> Which is the way to do it?

Not sure if this is the best way but it works.




\setlayer[test][right]{Odd page}
\setlayer[test][left] {Even page}



  {\dorecurse{\recurselevel}{\input zapf\par}



More information about the ntg-context mailing list