ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \translate and PDF bookmarks
@ 2015-01-29 19:28 Pablo Rodriguez
  2015-01-29 19:39 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2015-01-29 19:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \translate and PDF bookmarks
  2015-01-29 19:28 \translate and PDF bookmarks Pablo Rodriguez
@ 2015-01-29 19:39 ` Wolfgang Schuster
  2015-01-29 19:58   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2015-01-29 19:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \translate and PDF bookmarks
  2015-01-29 19:39 ` Wolfgang Schuster
@ 2015-01-29 19:58   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2015-01-29 19:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 01/29/2015 08:39 PM, Wolfgang Schuster wrote:
>> Am 29.01.2015 um 20:28 schrieb Pablo Rodriguez:
>> [...]
>> 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.

Many thanks for your fast reply, Wolfgang.

This was exactly what I needed.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-29 19:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29 19:28 \translate and PDF bookmarks Pablo Rodriguez
2015-01-29 19:39 ` Wolfgang Schuster
2015-01-29 19:58   ` Pablo Rodriguez

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).