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

* Re: conversionsets fall back in bookmarks
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2011-02-06 11:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Steffen Wolfrum

On 6-2-2011 10:35, Steffen Wolfrum wrote:
> 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},...]

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
-----------------------------------------------------------------
___________________________________________________________________________________
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: conversionsets fall back in bookmarks
  2011-02-06 11:53 ` Hans Hagen
@ 2011-02-06 12:13   ` Steffen Wolfrum
  0 siblings, 0 replies; 3+ messages in thread
From: Steffen Wolfrum @ 2011-02-06 12:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 06.02.2011 um 12:53 schrieb Hans Hagen:

> On 6-2-2011 10:35, Steffen Wolfrum wrote:
>> 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},...]
> 
> 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)



... sounds fully understandable :o)

Steffen

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