[NTG-context] bookmark expansion again

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Mon May 27 20:46:56 CEST 2019

Pablo Rodriguez schrieb am 27.05.2019 um 20:33:
> Hi Hans,
> I have the following sample:
>      \def\eap{expansion}
>      \def\MyContent{Expanded \eap}
>      %~ \enabledirectives[references.bookmarks.preroll]
>      \setupinteraction[state=start, title={\MyContent}]
>      \placebookmarks[section]
>      \starttext
>      \section{\MyContent}
>      \startsection[title=\MyContent, bookmark=\MyContent]
>      \stopsection
>      \stoptext
> I see that now PDF contents are prerolled by default (which I think it
> is a great idea [I hope it isn’t a bug]).
> But bookmarks alone (when aren’t prerolled. From strc-sec.mkiv, I see
> that prerolling is only applied to \currentstructuretitle when
> \currentstructurebookmark is empty.
> Would it be possible that \currentstructurebookmark could have
> prerolling when it is different from \currentstructuretitle?
> Sorry for insisting, but I need this to avoid having "main:345{/h2}" as
> bookmark for some chapters.
You can try


or (for documents which use XML as input format)



More information about the ntg-context mailing list