[NTG-context] Reference text differing from title

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Dec 29 16:28:09 CET 2014

> The example you have provided works well for section titles, table of contents and references. What about bookmarks? The following extension of your example produces a bookmark "1 chaptertitle{Long title for the chapter}{Short title}":
> \setupinteraction[state=start]
> \placebookmarks[chapter]
> \defineselector[chaptertitle][max=2,n=2]
> \setuphead[chapter][textcommand={\setupselector[chaptertitle][n=1]}]
> \starttext
> \startchapter[reference=sec:short,title=\select{chaptertitle}{Long title for the chapter}{Short title}]
> \input knuth
> \about[sec:short]
> \stopchapter
> \stoptext
> For setuphead, is there something like a "textcommand" key for bookmarks?

You can set the text for the bookmarks with \startchapter[bookmark=…,…]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20141229/41f0b2a3/attachment-0001.html>

More information about the ntg-context mailing list