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
On 6-2-2011 10:35, Steffen Wolfrum wrote:
conversions for bookmarks never go through the macro machinery and typesetter (maybe some day when luatex is further along the route, but not in the short term as i'm not going to write complex intermediate solutions any more that can be dropped later) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Steffen Wolfrum