Hi, > On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context > <ntg-context@ntg.nl> wrote: > > Hi, > I know I asked the question a few years ago, but I don't remember ! > The idea is to test whether the document contains only one page or not.
Perhaps not the nicest solution, but this works: \doifvalueelse {\lastpage} {1} {\message{true}} {\message{false}} > If it contains only one page, the header is enabled. > If it contains several pages, the header is enabled only on the first page > but not on the others. > Thanks > Fabrice > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________