From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \translate and PDF bookmarks
Date: Thu, 29 Jan 2015 20:39:30 +0100 [thread overview]
Message-ID: <CF9AC82D-6A12-479B-B08E-51B661B55127@gmail.com> (raw)
In-Reply-To: <54CA89E2.9080608@gmx.es>
> Am 29.01.2015 um 20:28 schrieb Pablo Rodriguez <oinos@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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-01-29 19:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 19:28 Pablo Rodriguez
2015-01-29 19:39 ` Wolfgang Schuster [this message]
2015-01-29 19:58 ` Pablo Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CF9AC82D-6A12-479B-B08E-51B661B55127@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).