ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* macro expansion in bookmarks
@ 2004-06-14 16:18 Peter Münster
  2004-06-14 22:49 ` Hans Hagen Outside
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2004-06-14 16:18 UTC (permalink / raw)


Hello,
is there a switch to turn on macro expansion in bookmarks?
Here an example, to show what I mean:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\definesynonyms[Acro][acronymes][\Full]
\Acro{ST}{some text}
\placebookmarks[section]
\starttext
\section{\Full{ST}} % result not as expected in bookmark
\stoptext

TIA for any help, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

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

* Re: macro expansion in bookmarks
  2004-06-14 16:18 macro expansion in bookmarks Peter Münster
@ 2004-06-14 22:49 ` Hans Hagen Outside
  2004-06-19 15:53   ` Peter Münster
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen Outside @ 2004-06-14 22:49 UTC (permalink / raw)


Peter Münster wrote:

>Hello,
>is there a switch to turn on macro expansion in bookmarks?
>Here an example, to show what I mean:
>\setupinteraction[state=start]
>\setupinteractionscreen[option=bookmark]
>\definesynonyms[Acro][acronymes][\Full]
>\Acro{ST}{some text}
>\placebookmarks[section]
>\starttext
>\section{\Full{ST}} % result not as expected in bookmark
>\stoptext
>
>TIA for any help, Peter
>  
>
you can simplify commands with: 
	
\appendtoks
  \def\yourdangerouscommand{dont worry} 
\to \simplifiedcommands 

or better in this case:  

\section{\Full{ST}}

\bookmark{some bookmark specific text} 

whatever 


 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: macro expansion in bookmarks
  2004-06-14 22:49 ` Hans Hagen Outside
@ 2004-06-19 15:53   ` Peter Münster
  2004-06-21 14:02     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2004-06-19 15:53 UTC (permalink / raw)


On Tue, 15 Jun 2004, Hans Hagen Outside wrote:

> >is there a switch to turn on macro expansion in bookmarks?
> >Here an example, to show what I mean:
> >\setupinteraction[state=start]
> >\setupinteractionscreen[option=bookmark]
> >\definesynonyms[Acro][acronymes][\Full]
> >\Acro{ST}{some text}
> >\placebookmarks[section]
> >\starttext
> >\section{\Full{ST}} % result not as expected in bookmark
> >\stoptext
> >
> you can simplify commands with: 
> 	
> \appendtoks
>   \def\yourdangerouscommand{dont worry} 
> \to \simplifiedcommands 

Thanks for your answer Hans.
You should I applie this to my example?
Same behaviour as with LaTeX and hyperref.sty would be nice.

But anyway, bookmarks are no more placed since latest beta... :(

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

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

* Re: macro expansion in bookmarks
  2004-06-19 15:53   ` Peter Münster
@ 2004-06-21 14:02     ` Hans Hagen
  2004-06-21 14:59       ` Peter Münster
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2004-06-21 14:02 UTC (permalink / raw)


Peter Münster wrote:

>But anyway, bookmarks are no more placed since latest beta... :(
>  
>
a minimal example would help ... i never use bookmarks myself -) 

Hans  

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: macro expansion in bookmarks
  2004-06-21 14:02     ` Hans Hagen
@ 2004-06-21 14:59       ` Peter Münster
  2004-06-21 19:26         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Peter Münster @ 2004-06-21 14:59 UTC (permalink / raw)


On Mon, 21 Jun 2004, Hans Hagen wrote:

> Peter Münster wrote:
> 
> >But anyway, bookmarks are no more placed since latest beta... :(
> >  
> >
> a minimal example would help ... i never use bookmarks myself -) 

Just the same example as before, here without \definesynonyms:
\setupinteraction[state=start]
\setupinteractionscreen[option=bookmark]
\placebookmarks[section]
\starttext
\section{some text} % no bookmark
\stoptext

ConTeXt version is now 2004.6.16

Greetings, Peter

-- 
http://pmrb.free.fr/contact/
_____________________________________
FilmSearch engine: http://f-s.sf.net/

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

* Re: macro expansion in bookmarks
  2004-06-21 14:59       ` Peter Münster
@ 2004-06-21 19:26         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2004-06-21 19:26 UTC (permalink / raw)


Peter Münster wrote:

>On Mon, 21 Jun 2004, Hans Hagen wrote:
>
>  
>
>>Peter Münster wrote:
>>
>>    
>>
>>>But anyway, bookmarks are no more placed since latest beta... :(
>>> 
>>>
>>>      
>>>
>>a minimal example would help ... i never use bookmarks myself -) 
>>    
>>
>
>Just the same example as before, here without \definesynonyms:
>\setupinteraction[state=start]
>\setupinteractionscreen[option=bookmark]
>\placebookmarks[section]
>\starttext
>\section{some text} % no bookmark
>\stoptext
>
>ConTeXt version is now 2004.6.16
>  
>
ah, side effect of speed optimization -)

\def\doprocessbookmarks[#1]#2%
  {\let\dolijstelement#2\relax
   \scratchcounter\zerocount
   \def\docommando##1%
     {\advance\scratchcounter \plusone
      \getlistlevel[##1]\listlevel{\the\scratchcounter}%
      \setxvalue{\@@bookcount\the\scratchcounter}{1}%
      \setxvalue{\@@booklevel##1}{\listlevel}}%
   \processcommalist[#1]\docommando
   \setxvalue{\@@bookcount0}{1}%
   \global\chardef\currentbookmarklevel\zerocount
   \global\chardef\previousbookmarklevel\zerocount
   \doutilities{listentries,#1,\@@bookmark}\jobname{#1}\relax\relax}                 

                ^^^ listentries added 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

end of thread, other threads:[~2004-06-21 19:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-14 16:18 macro expansion in bookmarks Peter Münster
2004-06-14 22:49 ` Hans Hagen Outside
2004-06-19 15:53   ` Peter Münster
2004-06-21 14:02     ` Hans Hagen
2004-06-21 14:59       ` Peter Münster
2004-06-21 19:26         ` Hans Hagen

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