[NTG-context] not able to change paper sizes

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Feb 4 19:54:14 CET 2016


> Pablo Rodriguez <mailto:oinos at gmx.es>
> 4. Februar 2016 um 19:43
>
> But I get two test2 on page 2:
>
> \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start]
> \setlayer[test1]{page1}
Set the layer content after \starttext or load a font before you set it,
otherwise context uses a monospace font as fallback.
> \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue]
Remove "state=continue".
> \startsetups[testlayer]
> \setlayer[test2]{page2}
> \stopsetups
You have to include a check for the first page, possible are

\startsetups[testlayer]
     \ifnum\rawcountervalue[userpage]=1\else
         \setlayer[test2]{page2}
     \fi
\stopsetups

or

\startsetups[testlayer]
     \doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}}
\stopsetups

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160204/991f8afe/attachment.html>


More information about the ntg-context mailing list