[NTG-context] Background on the 1st page only, page numbering from the 2nd page

Wolfgang Schuster schuster.wolfgang at googlemail.com
Wed May 2 14:24:24 CEST 2012


Am 02.05.2012 um 09:45 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> how to specify the page background for the first page only and how to start page numbering from the second page?
> 
> Here's my trial:
> 
> ----
> \defineoverlay[Bkg][{\externalfigure[cow]}]
> \setupbackgrounds[paper][background=Bkg]
> 
> %\setuppagenumbering[state=2]
> 
> \starttext
>  \dorecurse{5}{\input knuth}
> \stoptext
> ----
> 
> - The background is on all pages, so is the page numbering.
> 
> Any ideas?

\defineoverlay[Bkg][\doif{\pagenumber}{1}{\externalfigure[cow]}]

\setupbackgrounds[paper][background=Bkg]

\starttext \noheaderandfooterlines
\dorecurse{5}{\input knuth\par}
\stoptext

Wolfgang


More information about the ntg-context mailing list