From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85477 Path: news.gmane.org!not-for-mail From: "Jan Tosovsky" Newsgroups: gmane.comp.tex.context Subject: Re: PDF bookmarks - incorrect titles for registers Date: Tue, 26 Nov 2013 20:03:43 +0100 Message-ID: <36117.4706639305$1385492636@news.gmane.org> References: <00f801cee49e$c9521ad0$5bf65070$@tosovsky@email.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385492625 26659 80.91.229.3 (26 Nov 2013 19:03:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 19:03:45 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 26 20:03:51 2013 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 1VlNvL-0003O4-2I for gctc-ntg-context-518@m.gmane.org; Tue, 26 Nov 2013 20:03:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EAA58101E5; Tue, 26 Nov 2013 20:03:49 +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 qLPn1tOJ+RKh; Tue, 26 Nov 2013 20:03:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 55B79101E6; Tue, 26 Nov 2013 20:03:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B26B101E6 for ; Tue, 26 Nov 2013 20:03:46 +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 P2Ycmc2PoSVl for ; Tue, 26 Nov 2013 20:03:44 +0100 (CET) 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 B0148101E5 for ; Tue, 26 Nov 2013 20:03:44 +0100 (CET) Original-Received: from fep19.mx.upcmail.net (fep19.mx.upcmail.net [62.179.121.39]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAQJ3hIm007007 for ; Tue, 26 Nov 2013 20:03:43 +0100 Original-Received: from edge03.upcmail.net ([192.168.13.238]) by viefep19-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20131126190343.JMBU217.viefep19-int.chello.at@edge03.upcmail.net> for ; Tue, 26 Nov 2013 20:03:43 +0100 Original-Received: from emk ([78.102.140.157]) by edge03.upcmail.net with edge id uK3i1m0293Px8vi03K3iFk; Tue, 26 Nov 2013 20:03:43 +0100 X-SourceIP: 78.102.140.157 In-Reply-To: <00f801cee49e$c9521ad0$5bf65070$@tosovsky@email.cz> X-Mailer: Microsoft Office Outlook 12.0 Content-Language: cs Thread-Index: Ac7knsVfn13a2oJWS4OQRFhj7nh6TwGOaptw X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.39; country=AT; latitude=47.3333; longitude=13.3333; http://maps.google.com/maps?q=47.3333,13.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TKSj3HWX - 41d64745a058 - 20131126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85477 Archived-At: On 2013-11-18 Jan Tosovsky wrote: > > when I specify custom titles for my registers, they are ignored in > bookmarks: > > \setupinteraction[state=start] > \placebookmarks[chapter] > \setupinteractionscreen[option=bookmark] > > \defineregister[indexname][indexnames] > \defineregister[indexsubject][indexsubjects] > \setupheadtext[indexname=Name Index] > \setupheadtext[indexsubject=Subject Index] > > \starttext > \completecontent > \chapter{Chapter}text\indexname{primary}\indexsubject{primary} > \startbackmatter > \completeindexname > \completeindexsubject > \stopbackmatter > \stoptext > > Is it necessary to switch something else on? According to the proposed solution at http://tracker.luatex.org/view.php?id=865 it can be switched on using this magic formula \enabledirectives[references.bookmarks.preroll] What is the correct usage of this? And are there any details why it is required and what exactly it does? When it is added to the beginning of my example, it returns an error: attempt to call field 'boxtostring' (a nil value) But to be honest, I'd expect setting this flag internally by default as I cannot imagine any use case where the index ID should be preferred in favor of the title... Jan ___________________________________________________________________________________ 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 ___________________________________________________________________________________