[NTG-context] \translate and PDF bookmarks

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Jan 29 20:39:30 CET 2015


> Am 29.01.2015 um 20:28 schrieb Pablo Rodriguez <oinos at gmx.es>:
> 
> Dear list,
> 
> I have the following sample:
> 
> \setupinteraction[state=start]
> \placebookmarks[section][criterium=all]
> \def\FootnotesHeading{\translate[en=English Notes, es=Notas en español]}
> \def\mimo{\section{\FootnotesHeading}}
> \starttext
> \es\mimo
> \en\mimo
> \stoptext
> 
> Headings except in PDF bookmarks are fine.
> 
> How can I get titles in PDF bookmarks?

You can’t use the \translate command to set different texts for bookmarks because it is unexpandable.

What you can do is to use language dependent modes, e.g.

\startmode[*en]
English notes.
\stopmode

\startmode[*es]
Notas en español.
\stopmode

Wolfgang


More information about the ntg-context mailing list