Am 02.05.2012 um 15:49 schrieb Procházka Lukáš Ing. - Pontex s. r. o.: > ... 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?
It disables the header/footer on the page where \noheaderandfooterlines was inserted. > 2) Why testing the #1 argument in the case 2 doesn't work? When you use “\pagenumber” you check the numeric value of the counter but when you check against “#1” you check again a formatted version of the pagenumber which can be colored or or even be a roman numeral which you have set with the conversion key. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________