From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91873 Path: news.gmane.org!not-for-mail From: Christoph Reller Newsgroups: gmane.comp.tex.context Subject: Re: Expansion in bookmarks Date: Thu, 9 Jul 2015 11:34:28 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0476997819==" X-Trace: ger.gmane.org 1436434553 4367 80.91.229.3 (9 Jul 2015 09:35:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 09:35:53 +0000 (UTC) To: ntg-context Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 09 11:35:42 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 1ZD8F3-0001dw-Ig for gctc-ntg-context-518@m.gmane.org; Thu, 09 Jul 2015 11:35:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9ED2610274 for ; Thu, 9 Jul 2015 11:35:35 +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 GmeNN6WiZ0g4 for ; Thu, 9 Jul 2015 11:35:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 45ADF10282 for ; Thu, 9 Jul 2015 11:35:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88F621020B for ; Thu, 9 Jul 2015 11:35:01 +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 S9t_8uUXEMyk for ; Thu, 9 Jul 2015 11:34:51 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 6043A10203 for ; Thu, 9 Jul 2015 11:34:51 +0200 (CEST) Original-Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by filter2-til.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t699Yoxo025494 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 9 Jul 2015 11:34:50 +0200 Original-Received: by wifm2 with SMTP id m2so12912971wif.1 for ; Thu, 09 Jul 2015 02:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=FvlfN0s2pPIJ+PDU9sOK4qO6LXxJvyHEZ10efgNmiaY=; b=Uu+4BcI9DFk3rsS2esTAH4j+JHUMa/dZYf6aQTuwBaIPuYNMqfsyiAbv+XswcLsS5R zPGaB2OlIO7u4z/jaL0Wv7gyIzRWH7K/H+dxclvYq4+F90/YSUu5TmcevPMsw+7go/ew Eyh/SrZCeFqNgBdWNZVhfAhI3PunyJg2QQEEA50BajOHYotTC5VaZip2puZn5NSRqHAg ADgK9cmKOE92712PsJeFIVxgJ/KUucW/Hu2t2elfwKDvXl7yud7RBkNdMLSB3HcPbHtz 67WVydwgkjDsHn4PwOMmDWEcPpBKumVrz5On4lZZ0ehnNNsWY33RQ4zedBmnPoZYMjTz HNbQ== X-Received: by 10.194.235.227 with SMTP id up3mr30743254wjc.132.1436434489929; Thu, 09 Jul 2015 02:34:49 -0700 (PDT) Original-Received: by 10.27.12.217 with HTTP; Thu, 9 Jul 2015 02:34:28 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::229; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TOO9yOzg - e3017d4a5c5d - 20150709 (trained as not-spam) Received-SPF: pass (filter2-til.mf.surf.net: domain of christoph.reller@gmail.com designates 2a00:1450:400c:c05::229 as permitted sender) receiver=filter2-til.mf.surf.net; client-ip=2a00:1450:400c:c05::229; envelope-from=; helo=mail-wi0-x229.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:91873 Archived-At: --===============0476997819== Content-Type: multipart/alternative; boundary=089e0141a51083f4fc051a6df7a6 --089e0141a51083f4fc051a6df7a6 Content-Type: text/plain; charset=UTF-8 On Wed, 08 Jul 2015 21:01:21 +0200, Hans Hagen wrote: > On 7/8/2015 4:18 PM, Christoph Reller wrote: > > Dear all! > > > > I want to define a command that is to be used in a section title. Also I > > want to use \autoinsertnextspace with this command. In the following > > MWE, why do \This and \AName not work, while \TEX does work? > > > > I appreciate any feedback, > > Christoph > > > > MWE: > > > > \setupinteraction[state=start] > > \setupinteractionscreen[option=bookmark] > > \placebookmarks[section][section] > > > > \def\What{This\autoinsertnextspace} > > > > \definesorting[Name] > > \setupsorting[Name][next=\autoinsertnextspace] > > \Name[AName]{Knuth} > > > > \usemodule[abr-01] > > \setupsorting[logo][next=\autoinsertnextspace] > > > > \starttext > > \startsection[title={\What is puzzling}]\stopsection > > \startsection[title={\AName is puzzling}]\stopsection > > \startsection[title={\TEX is puzzling}]\stopsection > > \stoptext > > you can try: > > \enabledirectives[references.bookmarks.preroll] > > or specify bookmarks with bookmark=... alongside the title= > > Hans > Thank you very much Hans! The references.bookmarks.preroll directive works nicely. However, I still don't understand why in the above example \TEX is working. Can you shed any light on this? Regards, Christoph --089e0141a51083f4fc051a6df7a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On= =C2=A0Wed, 08 Jul 2015 21:01:21 +0200, Hans Hagen <pragma@wxs.nl>=C2=A0wrote:
On 7/8/20= 15 4:18 PM, Christoph Reller wrote:
> Dear all!
>
> I want to define a command that is to be used in a section title. Also= I
> want to use \autoinsertnextspace with this command. In the following > MWE, why do \This and \AName not work, while \TEX does work?
>
> I appreciate any feedback,
> Christoph
>
> MWE:
>
> \setupinteraction[state=3Dstart]
> \setupinteractionscreen[option=3Dbookmark]
> \placebookmarks[section][section]
>
> \def\What{This\autoinsertnextspace}
>
> \definesorting[Name]
> \setupsorting[Name][next=3D\autoinsertnextspace]
> \Name[AName]{Knuth}
>
> \usemodule[abr-01]
> \setupsorting[logo][next=3D\autoinsertnextspace]
>
> \starttext
> \startsection[title=3D{\What is puzzling}]\stopsection
> \startsection[title=3D{\AName is puzzling}]\stopsection
> \startsection[title=3D{\TEX is puzzling}]\stopsection
> \stoptext

you can try:

\enabledirectives[references.bookmarks.preroll]

or specify bookmarks with bookmark=3D... alongside the title=3D

Hans
=C2=A0
Thank you very much Hans! The re= ferences.bookmarks.preroll directive works nicely.

However, I still don't understand why in the above example \TEX is wor= king. Can you shed any light on this?

Regards,
Christoph
--089e0141a51083f4fc051a6df7a6-- --===============0476997819== 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= --===============0476997819==--