![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
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/
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
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/
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/cedc4d83943006afe3994fb0a0455f82.jpg?s=120&d=mm&r=g)
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/
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Hans Hagen Outside
-
Peter Münster