ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* conversionsets fall back in bookmarks
@ 2011-02-06  9:35 Steffen Wolfrum
  2011-02-06 11:53 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2011-02-06  9:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

own conversionsets can be defined eg. like this:

\define[1]\TestConversion  {(\characters{#1}\characters{#1})}
\defineconversion [TestCon]           [\TestConversion]

As expected this gives "aa" and "bb" etc.

Only when using PDF bookmarks these conversions fall back to numbers (see example below).

A workaround could be to write these conversions explicitly:
\defineconversion [TestCon][{aa},{bb},{cc},{dd},...]

Here the "aa" etc conversion is preserved in bookmarks too.
Only, it is not very elegant and for long documents with many sections it may lead to typos.


Hence, my question:
Is there a low-level trick to preserve conversionsets, 
defined like {(\characters{#1}\characters{#1})},
so they appear in bookmarks, too?

Thanks,
Steffen
------


\setupinteraction[state=start]
\setupinteractionscreen [option=bookmark]

\placebookmarks[chapter,section][chapter,section]

%This does nots work:
\define[1]\TestConversion  {(\characters{#1}\characters{#1})}
\defineconversion [TestCon]           [\TestConversion]
%

% This works:
%\defineconversion [TestCon][{aa},{bb},{cc},{dd},{ee},{ff},{gg},{hh},{ii},{jj},{kk},{ll},{mm},{nn},{oo},{pp},{qq},{rr}]
%

\definestructureconversionset [default] [ , TestCon,characters] [numbers]

\starttext

\chapter{one}
\section{two}
test


\stoptext
___________________________________________________________________________________
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:[~2011-02-06 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06  9:35 conversionsets fall back in bookmarks Steffen Wolfrum
2011-02-06 11:53 ` Hans Hagen
2011-02-06 12:13   ` Steffen Wolfrum

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