From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92882 Path: news.gmane.org!not-for-mail From: massifr@fastwebnet.it Newsgroups: gmane.comp.tex.context Subject: Re: only page number in the header of the chapter title page Date: Tue, 10 Nov 2015 18:53:46 +0100 Message-ID: <1907082.j5WJyyy1j6@max> References: <3391820.Yut1z99HoS@max> <6270148.Bon2RoTyEi@max> <56422AFB.3030203@gmail.com> Reply-To: massifr@fastwebnet.it, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1940621636==" X-Trace: ger.gmane.org 1447178087 27195 80.91.229.3 (10 Nov 2015 17:54:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2015 17:54:47 +0000 (UTC) To: Wolfgang Schuster , ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 10 18:54:31 2015 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 1ZwD7l-0005Mn-32 for gctc-ntg-context-518@m.gmane.org; Tue, 10 Nov 2015 18:54:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A09621021A for ; Tue, 10 Nov 2015 18:54:28 +0100 (CET) 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 sm4lgyns2Coo for ; Tue, 10 Nov 2015 18:54:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C3EBF1023D for ; Tue, 10 Nov 2015 18:53:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25B9A101FB for ; Tue, 10 Nov 2015 18:53:51 +0100 (CET) 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 tCCBW7vDQQnk for ; Tue, 10 Nov 2015 18:53:49 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id A664E101E8 for ; Tue, 10 Nov 2015 18:53:49 +0100 (CET) Original-Received: from mr003msr.fastwebnet.it (mr003msr.fastwebnet.it [85.18.95.66]) by filter2-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id tAAHrlGY009971 for ; Tue, 10 Nov 2015 18:53:48 +0100 Original-Received: from max.localnet (2.225.185.111) by mr003msr.fastwebnet.it (8.5.140.03) (authenticated as massifr) id 563CE97C00409F6F; Tue, 10 Nov 2015 18:53:46 +0100 User-Agent: KMail/4.14.10 (Linux/4.2.0-1-686-pae; KDE/4.14.13; i686; ; ) In-Reply-To: <56422AFB.3030203@gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=85.18.95.66; country=IT; latitude=42.8333; longitude=12.8333; http://maps.google.com/maps?q=42.8333,12.8333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04PDRRLFk - fbe86356659b - 20151110 (trained as not-spam) Received-SPF: none (filter2-utr.mf.surf.net: domain of massifr@fastwebnet.it does not designate permitted sender hosts) receiver=filter2-utr.mf.surf.net; client-ip=85.18.95.66; envelope-from=; helo=mr003msr.fastwebnet.it; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:92882 Archived-At: This is a multi-part message in MIME format. --===============1940621636== Content-Type: multipart/alternative; boundary="nextPart5888240.UFp5i4T8k9" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart5888240.UFp5i4T8k9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Thanks a lot, Wolfgang just now I was posting a solution of mine,=20 but yours is more elegant and concise. Best regards, Massi PS: here's my solution (but I'll use yours): \definemarking[headertitle] \setupheadertexts[] \setupheadertexts[\setups{oddpages}][][][\setups{evenpages}] \startsetups[evenpages] \pagenumber \emspace \getmarking[headertitle][top] \hfill \stopsetups \startsetups[oddpages] \hfill \getmarking[headertitle][top] \emspace \pagenumber \stopsetups \starttext \startchapter[title=3DTrial chapter] \marking[headertitle]{\space} \marking[headertitle]{Trial chapter} \dorecurse{11}{\input knuth\par} \stopchapter \stoptext In data marted=C3=AC 10 novembre 2015 18:35:55, hai scritto: > > massifr@fastwebnet.it > > 10. November 2015 um 12:50 > > > > I mean something like this: > > > > On the top of a chapter title page: > > > > +----------------------------------- > > > > | 34 > > | > > > > On the top of a page without chapter title: > > > > +----------------------------------- > > > > | 36 - Chapter title > > | > > > > Or (odd page): > > > > ----------------------------------+ > > > > Chapter title - 35 | > > | > > > > Thanks, Massi > > > > > You can use the \definetext command to set a different header (or=20 > footer) for chapter pages. >=20 > \setuppagenumbering[alternative=3Ddoublesided,location=3D] >=20 > \setupheadertexts > [][{\getmarking[chapter] =E2=80=93 \convertedcounter[userpage]}] > [{\convertedcounter[userpage] =E2=80=93 \getmarking[chapter]}][] >=20 > \definetext[chapterheader][header][][pagenumber] >=20 > \setuphead[chapter][header=3Dchapterheader] >=20 > \starttext >=20 > \dorecurse{4} > {\expanded{\chapter{Chapter \recurselevel}} > \dorecurse{10}{\input knuth\par}} >=20 > \stoptext >=20 > Wolfgang --nextPart5888240.UFp5i4T8k9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

Tha= nks a lot, Wolfgang

jus= t now I was posting a solution of mine,

but= yours is more elegant and concise.

 

Bes= t regards,

Mas= si

 

PS:= here's my solution (but I'll use yours):

 

\de= finemarking[headertitle]

 

\se= tupheadertexts[]

\se= tupheadertexts[\setups{oddpages}][][][\setups{evenpages}]

 

\st= artsetups[evenpages]

\= pagenumber

\= emspace

\= getmarking[headertitle][top]

\= hfill

\st= opsetups

 

\st= artsetups[oddpages]

\= hfill

\= getmarking[headertitle][top]

\= emspace

\= pagenumber

\st= opsetups

 

\st= arttext

 

\st= artchapter[title=3DTrial chapter]

 

\ma= rking[headertitle]{\space}

\ma= rking[headertitle]{Trial chapter}

 

\do= recurse{11}{\input knuth\par}

 

\st= opchapter

 

\st= optext

 

In = data marted=C3=AC 10 novembre 2015 18:35:55, hai scritto:

>= ; > massifr@fastwebnet.it <mailto:massifr@fastwebnet.it>

>= ; > 10. November 2015 um 12:50

>= ; >

>= ; > I mean something like this:

>= ; >

>= ; > On the top of a chapter title page:

>= ; >

>= ; > +-----------------------------------

>= ; >

>= ; > | 34

>= ; > |

>= ; >

>= ; > On the top of a page without chapter title:

>= ; >

>= ; > +-----------------------------------

>= ; >

>= ; > | 36 - Chapter title

>= ; > |

>= ; >

>= ; > Or (odd page):

>= ; >

>= ; > ----------------------------------+

>= ; >

>= ; > Chapter title - 35 |

>= ; > |

>= ; >

>= ; > Thanks, Massi

>= ; >

>= ; >

>= ; You can use the \definetext command to set a different header (or

>= ; footer) for chapter pages.

>= ;

>= ; \setuppagenumbering[alternative=3Ddoublesided,location=3D]

>= ;

>= ; \setupheadertexts

>= ; [][{\getmarking[chapter] =E2=80=93 \convertedcounter[userpage]}]

>= ; [{\convertedcounter[userpage] =E2=80=93 \getmarking[chapter]}][]

>= ;

>= ; \definetext[chapterheader][header][][pagenumber]

>= ;

>= ; \setuphead[chapter][header=3Dchapterheader]

>= ;

>= ; \starttext

>= ;

>= ; \dorecurse{4}

>= ; {\expanded{\chapter{Chapter \recurselevel}}

>= ; \dorecurse{10}{\input knuth\par}}

>= ;

>= ; \stoptext

>= ;

>= ; Wolfgang

 

--nextPart5888240.UFp5i4T8k9-- --===============1940621636== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1940621636==--