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

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Wed May 2 15:09:21 CEST 2012


... Thanks to Marco and Wolfgang for the solution - both ideas work well.

I also added a test to print the page number, so the whole code is:

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

\setupbackgrounds[paper][background=Bkg]

\def\MyPageNumber#1{\doifelse{\pagenumber}{1}{}{\pagenumber}}

\setuppagenumbering[location={footer,middle},command=\MyPageNumber]

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

Best regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr at pontex.cz]
Pontex s. r. o.      [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038



More information about the ntg-context mailing list