From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/89661 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Reference text differing from title Date: Mon, 29 Dec 2014 16:28:09 +0100 Message-ID: <5C8E496D-3579-44BB-A53C-5D76A673779F@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/mixed; boundary="===============1496135372==" X-Trace: ger.gmane.org 1419867156 11350 80.91.229.3 (29 Dec 2014 15:32:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 15:32:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 29 16:32:28 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 1Y5cJ0-0006dI-A1 for gctc-ntg-context-518@m.gmane.org; Mon, 29 Dec 2014 16:32:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA78610200 for ; Mon, 29 Dec 2014 16:32:25 +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 a2u3fEQDcAXm for ; Mon, 29 Dec 2014 16:32:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D4BE210239 for ; Mon, 29 Dec 2014 16:31:55 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62CDE101EA for ; Mon, 29 Dec 2014 16:31: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 09Ekq9tsHJKC for ; Mon, 29 Dec 2014 16:31:50 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 650DC101EC for ; Mon, 29 Dec 2014 16:28:13 +0100 (CET) Original-Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [IPv6:2a00:1450:400c:c00::232]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id sBTFSCjd032442 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 29 Dec 2014 16:28:12 +0100 Original-Received: by mail-wg0-f50.google.com with SMTP id a1so19330254wgh.9 for ; Mon, 29 Dec 2014 07:28:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=Or97L1Bzfu49X+J01BzBY7/gviSyKRYRRxvKXGHE9Gg=; b=Mm0zBZ7loEm/gV1IdsQINVCnJFR/ZibwG7bmqTkWrggmJW97VJ7EggcflJadrbzA6G yZBsyySWzZtG35W4FAUnXpps0ZSiYqfPDLcNUvqmSkcXckJZ20c6BzPN/TfbpJjw0yZI LFRu0TMx7W6/hh7b25Q9+P3iU9OJcUCSogKmuI5KHNtl5sF45TN4as1P/bNDAMw+l06b hatSupKyuiGxLEzrkt8U67PhFBUFEDphHdyv+o2ZMhuKeOaJyWeg7KVN+41wdQdVkLkv JTL33d0adTk/G//sM+EijEVafTAWIvOiiN47emIeH8omi7JtQY1o8ozIPC79/WIEP8nq wObA== X-Received: by 10.180.211.2 with SMTP id my2mr95644218wic.3.1419866892423; Mon, 29 Dec 2014 07:28:12 -0800 (PST) Original-Received: from keima.localdomain (x2f343ad.dyn.telefonica.de. [2.243.67.173]) by mx.google.com with ESMTPSA id x6sm16613325wjf.24.2014.12.29.07.28.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Dec 2014 07:28:11 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1993) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::232; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01NxrscvO - 567b49675c68 - 20141229 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c00::232 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c00::232; envelope-from=; helo=mail-wg0-x232.google.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:89661 Archived-At: --===============1496135372== Content-Type: multipart/alternative; boundary="Apple-Mail=_80955D4A-FD79-447A-8A67-04B71F31AE8B" --Apple-Mail=_80955D4A-FD79-447A-8A67-04B71F31AE8B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > The example you have provided works well for section titles, table of = contents and references. What about bookmarks? The following extension = of your example produces a bookmark "1 chaptertitle{Long title for the = chapter}{Short title}": >=20 > \setupinteraction[state=3Dstart] > \placebookmarks[chapter] > \defineselector[chaptertitle][max=3D2,n=3D2] > \setuphead[chapter][textcommand=3D{\setupselector[chaptertitle][n=3D1]}]= > \starttext > \startchapter[reference=3Dsec:short,title=3D\select{chaptertitle}{Long = title for the chapter}{Short title}] > \input knuth > \about[sec:short] > \stopchapter > \stoptext >=20 > For setuphead, is there something like a "textcommand" key for = bookmarks? You can set the text for the bookmarks with = \startchapter[bookmark=3D=E2=80=A6,=E2=80=A6] Wolfgang --Apple-Mail=_80955D4A-FD79-447A-8A67-04B71F31AE8B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
The example you have provided works well for section titles, = table of contents and references. What about bookmarks? The following = extension of your example produces a bookmark "1 chaptertitle{Long title = for the chapter}{Short title}":

\setupinteraction[state=3Dstart]
\placebookmarks[chapter]
\defineselector[chaptertitle][max=3D2,n=3D2]
\setuphead[chapter][textcommand=3D{\setupselector[chaptertitle]= [n=3D1]}]
\starttext
\startchapter[reference=3Dsec:short,title=3D\select{chaptertitl= e}{Long title for the chapter}{Short title}]
\input = knuth
\about[sec:short]
\stopchapter
\stoptext

For setuphead, is there = something like a "textcommand" key for = bookmarks?

You can set the text for the bookmarks with = \startchapter[bookmark=3D=E2=80=A6,=E2=80=A6]

Wolfgang

= --Apple-Mail=_80955D4A-FD79-447A-8A67-04B71F31AE8B-- --===============1496135372== 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= --===============1496135372==--