[NTG-context] Bookmark question

Hans Hagen pragma at wxs.nl
Wed Feb 6 21:44:12 CET 2008


Taco Hoekwater wrote:
> Hans Hagen wrote:
>> WN wrote:
>>> This is what I would like to do
>>>
>>> \startfrontmatter
>>> \bookmark[chapter]{Inhoudsopgave}
>>> \completecontent[partnumber=no]
>>> \page
>>> \bookmark[chapter]{Lijst van figuren}
>>> \completelistoffigures[partnumber=no]
>>> \stopfrontmatter
>>> \startbodymatter
>>> \component chapter01
>>> \component chapter02
>>> ....
>>> \stopbodymatter
>>>
>>> the bookmarks only appears with the [chapter] included, but twice.
>>> Also they appear twice in the table of contents (which is consistent).
>>
>> \setupinteraction[state=start]
>>
>> \placebookmarks
>>
>> \starttext
>>
>> \completecontent[partnumber=no]
>>
>> \bookmark[chapter]{Inhoudsopgave}
>>
>> \page
>>
>> \completelistoffigures[partnumber=no]
>> \bookmark[chapter]{Lijst van figuren}
>>
>> \chapter{first}
>> \chapter{second}
>>
>> \stoptext
> 
> That looks good, but why? Does \complexbookmark only work to
> overrule a yet-to-come sectioning command?

no, the previous one (bookmarks are flushed in everypar)

in this case the \complete... has a \chapter so the bookmark influences 
that one

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


More information about the ntg-context mailing list