From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92286 Path: news.gmane.org!not-for-mail From: "talazem@fastmail.fm" Newsgroups: gmane.comp.tex.context Subject: Re: Can \getmarking take more than one argument? Date: Sun, 9 Aug 2015 12:22:12 +0100 Message-ID: <6348AD5F-DD0A-4E9D-A1B8-E91F78ACE3E7@fastmail.fm> References: <94B0B9DC-3866-4570-B612-E6CC196AACEB@fastmail.fm> <55C73292.902@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3075\)) Content-Type: multipart/mixed; boundary="===============0741671725==" X-Trace: ger.gmane.org 1439119328 6657 80.91.229.3 (9 Aug 2015 11:22:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Aug 2015 11:22:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 09 13:21:54 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 1ZOOfq-0006z8-6Z for gctc-ntg-context-518@m.gmane.org; Sun, 09 Aug 2015 13:21:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5610210231 for ; Sun, 9 Aug 2015 13:21:53 +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 oRO8FqtSCA09 for ; Sun, 9 Aug 2015 13:21:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0B5CF10234 for ; Sun, 9 Aug 2015 13:21:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3D54F101FE for ; Sun, 9 Aug 2015 13:21:19 +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 2oA6AivqEraP for ; Sun, 9 Aug 2015 13:21:18 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 0CCE2101FD for ; Sun, 9 Aug 2015 13:21:18 +0200 (CEST) Original-Received: from host21.specialservers.com (host21.specialservers.com [213.175.196.29] (may be forged)) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t79BLGpL006092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 9 Aug 2015 13:21:17 +0200 Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:44389 helo=[10.0.1.2]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZOOf9-003vUH-JQ for ntg-context@ntg.nl; Sun, 09 Aug 2015 12:21:13 +0100 In-Reply-To: <55C73292.902@wxs.nl> X-Mailer: Apple Mail (2.3075) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host21.specialservers.com X-AntiAbuse: Original Domain - ntg.nl X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fastmail.fm X-Get-Message-Sender-Via: host21.specialservers.com: authenticated_id: talal@alazem.org X-Source: X-Source-Args: X-Source-Dir: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.175.196.29; country=GB; latitude=51.5; longitude=-0.1300; http://maps.google.com/maps?q=51.5,-0.1300&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07P2zlg1p - 0b311a663745 - 20150809 Received-SPF: neutral (filter1-utr.mf.surf.net: 213.175.196.29 is neither permitted nor denied by domain talazem@fastmail.fm) receiver=filter1-utr.mf.surf.net; client-ip=213.175.196.29; envelope-from=; helo=host21.specialservers.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:92286 Archived-At: --===============0741671725== Content-Type: multipart/alternative; boundary="Apple-Mail=_F0C26BF5-D33A-4EFA-A6FF-8D5A6A4370F0" --Apple-Mail=_F0C26BF5-D33A-4EFA-A6FF-8D5A6A4370F0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Many thanks, Hans, as that seems to have done the trick! > On 9 Aug 2015, at 11:59, Hans Hagen wrote: >=20 > On 8/9/2015 2:42 AM, talazem@fastmail.fm = wrote: >> Hello, >>=20 >> I currently use the following to define my even and odd page headers. >>=20 >> =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 >> \startsetups[header] >> {\doifoddpageelse >> {\getmarking[section]} >> {\getmarking[chapter]} >> } >> \doiftextelse >> {\getmarking[chapter]} >> \stopsetups >> =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 >>=20 >> The problem is that some of my =E2=80=98section=E2=80=99s are not = sections, but =E2=80=98subject=E2=80=99s (because I don=E2=80=99t want = that section heading to appear in the TOC). As a result, my header is = blank on the =E2=80=98subject=E2=80=99 pages. >>=20 >> Is it possible to define getmarking to take either a section or a = subject, somehow? Listing them both separated by a coma = (\getmarking[section,subject]) produced no result. I also tried: >> =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 >> {\doifoddpageelse >> {\getmarking[section]} >> {\getmarking[subject]} >> {\getmarking[chapter]} >> =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 >> =E2=80=A6but that caused the subject and the chapter to both be = printed in the header. >>=20 >> Many thanks for any help. >=20 > \setupheadertexts[{\getmarking[section]}] > \definehead[suction][section][number=3Dno] >=20 > \starttext > \placelist[section] \page > \section{foo} \page > \suction{bar} \page > \stoptext >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com = > | www.pragma-pod.nl = > ----------------------------------------------------------------- > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_F0C26BF5-D33A-4EFA-A6FF-8D5A6A4370F0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Many thanks, Hans, as that seems to have done the trick!

On 9 Aug 2015, at 11:59, Hans Hagen <pragma@wxs.nl> = wrote:

On 8/9/2015 2:42 AM, talazem@fastmail.fm wrote:
Hello,

I currently use the following to define my even and odd page = headers.

=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94
\startsetups[header]
  {\doifoddpageelse
   = {\getmarking[section]}
   = {\getmarking[chapter]}
}
  \doiftextelse
   = {\getmarking[chapter]}
\stopsetups
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94
The problem is that some of my =E2=80=98section=E2=80=99s = are not sections, but =E2=80=98subject=E2=80=99s (because I don=E2=80=99t = want that section heading to appear in the TOC). As a result, my header = is blank on the =E2=80=98subject=E2=80=99 pages.

Is it possible to define getmarking to take either a section = or a subject, somehow? Listing them both separated by a coma = (\getmarking[section,subject]) produced no result. I also tried:
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94
  {\doifoddpageelse
   = {\getmarking[section]}
  = {\getmarking[subject]}
   = {\getmarking[chapter]}
=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94
=E2=80=A6but that caused the subject and = the chapter to both be printed in the header.

Many thanks for any help.

\setupheadertexts[{\getmarking[section]}]
\definehead[suction][section][number=3Dno]

\starttext
   \placelist[section] = \page
   \section{foo} \page
   \suction{bar} \page
\stoptext

---------------------------------------------------------------= --
          &nb= sp;            = ;            &= nbsp;     Hans Hagen | PRAGMA ADE
          &nb= sp;  Ridderstraat 27 | 8061 GH Hasselt | The = Netherlands
   tel: 038 477 53 69 | voip: 087 = 875 68 74 | www.pragma-ade.com
          &nb= sp;            = ;            &= nbsp;        | www.pragma-pod.nl
---------------------------------------------------------------= --
_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_F0C26BF5-D33A-4EFA-A6FF-8D5A6A4370F0-- --===============0741671725== 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= --===============0741671725==--