[NTG-context] pagenumber suppression howto?

Meer, H. van der H.vanderMeer at uva.nl
Sun Jul 20 21:35:30 CEST 2014

Thanks. Please let us know if this addition of location=none will be taken up in a future beta.

I also realised that the effect wanted can be obtained by dividing the single
into two additional macros
\noheaderlines and \nofooterlines
Is that a viable idea too?

Hans van der Meer

On 20 Jul 2014, at 20:35, Wolfgang Schuster <schuster.wolfgang at gmail.com<mailto:schuster.wolfgang at gmail.com>> wrote:

Am 20.07.2014 um 12:03 schrieb Meer, H. van der <H.vanderMeer at uva.nl<mailto:H.vanderMeer at uva.nl>>:

My goal is pages without header info at the top and text plus a pagenumber on the bottom. This can be accomplished by:
\setupfootertexts[some text][pagenumber]

I want the first page without that footer, to be done with:

But then comes the problem, because afterwards the default takes over and on the subsequent pages the pagenumber starts to appear in the header (the default setting apparently). Thus the \noheaderandfooterlines annuls the \setupheader[state=stop]

I did not find out how to get rid of the default pagenumber.
\setuppagenumber[state=stop] kills all pagenumbering, the programmed one in the leftbottom corner too.
\setuppagenumbering[state=stop] kills all pagenumbers, included the one I want to appear.
\setuppagenumbering[location=none] merely puts the pagenumber in the middle of the footer, obviously location=none has no meaning in ConTeXt.

So, I am at the end of the possibilities I can think of. How to?

Context performs only a check for a empty argument of the location key
(i.e. \setuppagenumbering[location=]) and in all other keys checks the argument
for a valid keyword, all unknown keywords are ignored. The ignored  “none” keyword
can be added by a simple change in the file page-txt.mkvi and I think such a change
would make sense because there are many places “none” is used when you disable
a function.

     % unchanged
      % set otherwise
-    \else
+    \else\ifx\p_strc_pagenumbers_location\v!none
+      % set otherwise
+    \else
-    \fi
+    \fi\fi

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

maillist : ntg-context at ntg.nl<mailto:ntg-context at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140720/2c08b5d1/attachment-0001.html>

More information about the ntg-context mailing list