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
___________________________________________________________________________________

Reply via email to