From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88167 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: pagenumber suppression howto? Date: Sun, 20 Jul 2014 19:35:30 +0000 Message-ID: <697C51F6-3879-4A9B-8E68-11715C4BB736@uva.nl> References: <314BD963-0BB6-4D52-99DF-6D5F4C4C8356@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1951168414==" X-Trace: ger.gmane.org 1405884961 12599 80.91.229.3 (20 Jul 2014 19:36:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2014 19:36:01 +0000 (UTC) To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 20 21:35:56 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X8wtn-00054D-Kg for gctc-ntg-context-518@m.gmane.org; Sun, 20 Jul 2014 21:35:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 144511021D for ; Sun, 20 Jul 2014 21:35:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YxHJSN8xvaWo for ; Sun, 20 Jul 2014 21:35:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7E2D510221 for ; Sun, 20 Jul 2014 21:35:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3FFAE101E6 for ; Sun, 20 Jul 2014 21:35:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0Q7pUjnYIhDS for ; Sun, 20 Jul 2014 21:35:37 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id F1B2D101E1 for ; Sun, 20 Jul 2014 21:35:31 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6KJZUm1030479 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sun, 20 Jul 2014 21:35:31 +0200 Original-Received: from MBX02.uva.nl ([169.254.2.177]) by HUB01.uva.nl ([2002:9232:6737::9232:6737]) with mapi id 14.03.0195.001; Sun, 20 Jul 2014 21:35:30 +0200 Thread-Topic: [NTG-context] pagenumber suppression howto? Thread-Index: AQHPpAHOCjerWy3TiUS7p5C9EH9sfpupKTsAgAAQwIA= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [83.81.49.118] X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=146.50.108.230; country=NL; region=North Holland; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06MsHzvRP - 57d108fb21c6 - 20140720 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88167 Archived-At: --===============1951168414== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_697C51F638794A9B8E6811715C4BB736uvanl_" --_000_697C51F638794A9B8E6811715C4BB736uvanl_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks. Please let us know if this addition of location=3Dnone will be take= n up in a future beta. I also realised that the effect wanted can be obtained by dividing the sing= le \noheaderandfooterlines 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 > wrote: Am 20.07.2014 um 12:03 schrieb Meer, H. van der >: My goal is pages without header info at the top and text plus a pagenumber = on the bottom. This can be accomplished by: \setupheader[state=3Dstop] \setupfooter[text][before=3D\hairline,style=3Dsmall,location=3Dleft,strut= =3Dyes] \setupfootertexts[some text][pagenumber] I want the first page without that footer, to be done with: \noheaderandfooterlines But then comes the problem, because afterwards the default takes over and o= n the subsequent pages the pagenumber starts to appear in the header (the d= efault setting apparently). Thus the \noheaderandfooterlines annuls the \se= tupheader[state=3Dstop] I did not find out how to get rid of the default pagenumber. \setuppagenumber[state=3Dstop] kills all pagenumbering, the programmed one = in the leftbottom corner too. \setuppagenumbering[state=3Dstop] kills all pagenumbers, included the one I= want to appear. \setuppagenumbering[location=3Dnone] merely puts the pagenumber in the midd= le of the footer, obviously location=3Dnone 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=3D]) and in all other keys checks the ar= gument for a valid keyword, all unknown keywords are ignored. The ignored =93none= =94 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 =93none=94 is used when you = disable a function. \unexpanded\def\strc_pagenumbers_set_location {\edef\p_strc_pagenumbers_location{\directpagenumberingparameter\c!locatio= n}% \ifx\p_strc_pagenumbers_location\m_page_layouts_page_number_location % unchanged \else \let\m_page_layouts_page_number_location\p_strc_pagenumbers_location \page_layouts_reset_page_number_location \ifx\p_strc_pagenumbers_location\empty % set otherwise - \else + \else\ifx\p_strc_pagenumbers_location\v!none + % set otherwise + \else \page_layouts_identify_page_number_location \page_layouts_set_page_number_location - \fi + \fi\fi \fi} Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.n= l/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 ___________________________________________________________________________= ________ --_000_697C51F638794A9B8E6811715C4BB736uvanl_ Content-Type: text/html; charset="Windows-1252" Content-ID: <1418696B9D1E454E8DA1FCFDD75EC0D9@uva.nl> Content-Transfer-Encoding: quoted-printable Thanks. Please let us know if this addition of location=3Dnone will be take= n up in a future beta.

I also realised that the effect wanted can be obtained by dividing the= single
  \noheaderandfooterli= nes
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@gmail.com> wrote:


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

My goal is pages without header info at the top a= nd text plus a pagenumber on the bottom. This can be accomplished by:
\setupheader[state=3Dstop]
\setupfooter[text][before=3D\hairline,style=3Dsmall,location=3Dleft,strut= =3Dyes]
\setupfootertexts[some text][pagenumber]

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

But then comes the problem, because afterwards the default takes over and o= n the subsequent pages the pagenumber starts to appear in the header (the d= efault setting apparently). Thus the \noheaderandfooterlines annuls the \se= tupheader[state=3Dstop]

I did not find out how to get rid of the default pagenumber. 
\setuppagenumber[state=3Dstop] kills all pagenumbering, the programmed one = in the leftbottom corner too.
\setuppagenumbering[state=3Dstop] kills all pagenumbers, included the one I= want to appear.
\setuppagenumbering[location=3Dnone] merely puts the pagenumber in the midd= le of the footer, obviously location=3Dnone 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=3D]) and in all other keys checks the ar= gument
for a valid keyword, all unknown keywords are ignored. The ignored  = =93none=94 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 =93none=94 is used when you = disable
a function.

\unexpanded\def\strc_pagenumbers_set_location
 {\edef\p_strc_pagenumbers_location{\directpagenumberingparameter\c!lo= cation}%
  \ifx\p_strc_pagenumbers_location\m_page_layouts_page_number_loc= ation
     % unchanged
  \else
    \let\m_page_layouts_page_number_location\p_strc_pag= enumbers_location
    \page_layouts_reset_page_number_location
    \ifx\p_strc_pagenumbers_location\empty
      % set otherwise
-    \else
+    \else\ifx\p_strc_pagenumbers_location\v!none
+      % set otherwise
+    \else
      \page_layouts_identify_page_number_loca= tion
      \page_layouts_set_page_number_location<= br> -    \fi
+    \fi\fi
  \fi}


Wolfgang
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context"> 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
___________________________________________________________________________= ________

--_000_697C51F638794A9B8E6811715C4BB736uvanl_-- --===============1951168414== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1951168414==--