From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108372 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: headers again Date: Wed, 12 Aug 2020 22:53:02 -0400 (EDT) Message-ID: References: <559623e4-d1db-c03b-9042-ccb14407a84d@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-950293119-1597287183=:1544" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32550"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.23 (LNX 453 2020-06-18) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 13 04:53:32 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k63My-0008LV-6l for gctc-ntg-context-518@m.gmane-mx.org; Thu, 13 Aug 2020 04:53:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 11280163667; Thu, 13 Aug 2020 04:53:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id muHG5YC3zCao; Thu, 13 Aug 2020 04:53:08 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2DEA0164422; Thu, 13 Aug 2020 04:53:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7394B164422 for ; Thu, 13 Aug 2020 04:53:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id s0pD6xD4CyGS for ; Thu, 13 Aug 2020 04:53:05 +0200 (CEST) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=132.206.73.2; helo=orford.cim.mcgill.ca; envelope-from=adityam@umich.edu; receiver= Original-Received: from orford.cim.mcgill.ca (smtp.cim.mcgill.ca [132.206.73.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id BA8EE163667 for ; Thu, 13 Aug 2020 04:53:05 +0200 (CEST) Original-Received: from adi-thinkpad.local (198-84-255-218.cpe.teksavvy.com [198.84.255.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: adityam) by orford.cim.mcgill.ca (Postfix) with ESMTPSA id 66A0F3C97D9 for ; Wed, 12 Aug 2020 22:53:03 -0400 (EDT) In-Reply-To: <559623e4-d1db-c03b-9042-ccb14407a84d@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:108372 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-950293119-1597287183=:1544 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 13 Aug 2020, jbf wrote: > Where running heads (headers) are concerned, if I use \chapter I have no= =20 > problems, nor should I expect any. But because I am also using \title,=20 > given that I need some unnumbered chapters interspersed=C2=A0 among them,= I=20 > run into difficulties with headers. Numbered chapters have the correct=20 > headers, unnumbered ones (with \title) either don't have them, or do not= =20 > have the proper chapter header (they pick up the header from the=20 > previous numbered chapter). >=20 > At the moment the only thing I have in the preamble is the expected set= =20 > of commands for the numbered chapters: >=20 > =C2=A0[{\hfill\getmarking[chapter]\hfill}][] > =C2=A0 [{\hfill\documentvariable{metadata:title}\hfill}][] >=20 > I thought that might work for the unnumbered ones (\title), thinking=20 > that maybe \title inherits from \chapter, but it doesn't. But no amount= =20 > of variations on the above commands (repeating them but replacing=20 > 'chapter' with 'title'; adding [title] or just title, in the first set=20 > of commands in various positions...) gives me the correct result. >=20 > I am assuming, of course, that there is a solution to this difficulty,=20 > and that it may be simple. But I haven't found it. Is the problem that I= =20 > am using \title in the main body to get my unnumbered chapters? I=20 > wouldn't think so? It produces the correct result, utlimatley, in the=20 > TOC, Is it possible that I may have something else in my preamble that=20 > is causing the problem? If so, I can't expect someone to 'guess' that=20 > from outside! But at the moment I don't think that is the problem. >=20 > If not a direct solution, are there any clues someone might give me that= =20 > will lead me to finding my own solution? It would be much appreciated. A rose by any other name would smell as sweet ... \showframe \setupheadertexts[\setups{header}] \startsetups header \getmarking[chapter] \stopsetups \starttext \startchapter[title=3D{This is a chapter}] \input knuth \page \input knuth \stopchapter \startchapter[title=3D{This is a title}, number=3Dno] \input ward \page \input knuth \stopchapter \stoptext Aditya --8323329-950293119-1597287183=:1544 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --8323329-950293119-1597287183=:1544--