On 2/16/2017 3:06 PM, Andreas Schneider wrote:
Am 2017-02-16 14:43, schrieb Hans Hagen:
because additional ones live at the tex end
why not use context.labeltext etc?
Hans
`context.labeltext` would immediately print the label, so I cannot use the value within lua. My workaround would be a crossover between lua and tex, but that results in the bookmark having the wrong label:
\setuplabeltext[en][test=Something] \startluacode context.startsectionlevel{title="\\labeltext[test]"} -- ... context.stopsectionlevel() \stopluacode
The title correctly reads "Something", but the bookmark in the PDF viewer shows "test".
also with this? \enabledirectives[references.bookmarks.preroll] ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------