From: Hans Hagen <pragma@wxs.nl>
Subject: Re: macro expansion in bookmarks
Date: Mon, 21 Jun 2004 21:26:16 +0200 [thread overview]
Message-ID: <40D73658.6030901@wxs.nl> (raw)
In-Reply-To: <Pine.LNX.4.58.0406211651100.7757@gaston.free.fr>
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
-----------------------------------------------------------------
prev parent reply other threads:[~2004-06-21 19:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-14 16:18 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40D73658.6030901@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).