From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85479 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:30:03 +0100 Message-ID: <41922.5335507237$1385494227@news.gmane.org> References: <00f801cee49e$c9521ad0$5bf65070$@tosovsky@email.cz> <005201ceeada$39d53fd0$ad7fbf70$@tosovsky@email.cz> <5294F248.1040001@wxs.nl> 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 1385494216 13476 80.91.229.3 (26 Nov 2013 19:30:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 19:30:16 +0000 (UTC) To: "'mailing list for ConTeXt users'" Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 26 20:30:23 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 1VlOKw-0007BI-0z for gctc-ntg-context-518@m.gmane.org; Tue, 26 Nov 2013 20:30:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83B21101E6; Tue, 26 Nov 2013 20:30:17 +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 NIZJ1ZpANIlf; Tue, 26 Nov 2013 20:30:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E1E85101E9; Tue, 26 Nov 2013 20:30:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3E3A101E9 for ; Tue, 26 Nov 2013 20:30:10 +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 xfJZS96I2iLy for ; Tue, 26 Nov 2013 20:30:05 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id D5279101E6 for ; Tue, 26 Nov 2013 20:30:05 +0100 (CET) Original-Received: from fep20.mx.upcmail.net (fep20.mx.upcmail.net [62.179.121.40]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAQJU4dQ030882 for ; Tue, 26 Nov 2013 20:30:04 +0100 Original-Received: from edge04.upcmail.net ([192.168.13.239]) by viefep20-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20131126193004.PEWB24076.viefep20-int.chello.at@edge04.upcmail.net> for ; Tue, 26 Nov 2013 20:30:04 +0100 Original-Received: from emk ([78.102.140.157]) by edge04.upcmail.net with edge id uKW31m0263Px8vi03KW3Mk; Tue, 26 Nov 2013 20:30:04 +0100 X-SourceIP: 78.102.140.157 In-Reply-To: <5294F248.1040001@wxs.nl> X-Mailer: Microsoft Office Outlook 12.0 Content-Language: cs Thread-Index: Ac7q20xZAcpRdbcdS2aIuNi1THF+CQAANBPQ X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=62.179.121.40; 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: 03KSju4Oi - 7af28dad184c - 20131126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:85479 Archived-At: On 2013-11-26 Hans Hagen wrote: > On 11/26/2013 8:03 PM, Jan Tosovsky wrote: > > 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? > > as titles can be anything and bookmarks are limited, we need to have > some protection in place ... unexpandable macros are simply dropped so > \labeltext{index} becomes index > > by default the title is set to a label which is not expandable > > the directive will convert the typeset title into a bookmark > Thanks for this detailed explanation. If I understand correctly, this switch is intentional and won't be applied automatically even for registers or other peculiar cases where title is specified differently/unexpectedly. > > When it is added to the beginning of my example, it returns an error: > > attempt to call field 'boxtostring' (a nil value) > > ah, only in my experimental tree, i'll add it to the beta Thanks, but this one is not so urgent. 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 ___________________________________________________________________________________