... One more question. Let's have three cases - some of them hide the page 
number on the first page, some of them don't.

The question is - why:

---- 1 - OK, no page number on page 1
\def\MyPageNumber#1{\doifelse{\pagenumber}{1}{}{\pagenumber}} % Testing 
\pagenumber

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

\starttext %\noheaderandfooterlines % COMMAND NOT USED
  \dorecurse{5}{\input knuth\par}
\stoptext
----

---- 2 - BAD, page number IS on page 1
\def\MyPageNumber#1{\doifelse{#1}{1}{}{\pagenumber}} % Testing #1 instead of 
\pagenumber

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

\starttext %\noheaderandfooterlines % COMMAND NOT USED
  \dorecurse{5}{\input knuth\par}
\stoptext
----

---- 3 - OK, no page number on page 1
\def\MyPageNumber#1{\doifelse{#1}{1}{}{\pagenumber}} % Testing #1 instead of 
\pagenumber

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

\starttext \noheaderandfooterlines % COMMAND IN USE
  \dorecurse{5}{\input knuth\par}
\stoptext
----

So -

1) What exactly does \noheaderandfooterlines do?

2) Why testing the #1 argument in the case 2 doesn't work?

TIA.

Lukas


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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to