Re: [NTG-context] Bookmark question

2008-02-11 Thread WN
Your solution works, but now I have to rewrite my carefully crafted 
environment
and setups. I rather wish your solution works within the start/stop 
frontmatter

construct.

Is this possible ?

Kind regards
Wim


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


  

I would like the bookmarks to appear once and not in the TOC.
Perhaps Hans can take the above code, as indeed your code works but
not in the above code.

Best wishes
Wim


Taco Hoekwater wrote:


WN wrote:
  

I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.
  
  

True enough. But should they appear twice ?
I want a custom bookmark for the table of contents and list of figures,
so I used \bookmark[chapter] to include these (once not twice).


Ah, I see now. Looks like a bug to me. I do not understand the code
well enough to fix it, however. I am attaching a minimal example for
Hans.

(meanwhile, you could use \bookmark without the optional argument).

Best wishes,
Taco


___ 

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___ 

  




___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___




  


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bookmark question

2008-02-06 Thread Taco Hoekwater
WN wrote:
 Hi,
 
 When I use \bookmark[chapter]{Some bookmark} the bookmark appears twice 
 in the list of bookmarks
 but the bookmark also appears twice in the Table of Contents.

I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bookmark question

2008-02-06 Thread WN

Taco Hoekwater wrote:

WN wrote:
  

Hi,

When I use \bookmark[chapter]{Some bookmark} the bookmark appears twice 
in the list of bookmarks

but the bookmark also appears twice in the Table of Contents.



I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.
  

True enough. But should they appear twice ?
I want a custom bookmark for the table of contents and list of figures,
so I used \bookmark[chapter] to include these (once not twice).

Best wishes
Wim

Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


  


___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bookmark question

2008-02-06 Thread Taco Hoekwater

WN wrote:


I think chapter titles are supposed appear automatically in the
bookmarks, no need for an explicit \bookmark.
  

True enough. But should they appear twice ?
I want a custom bookmark for the table of contents and list of figures,
so I used \bookmark[chapter] to include these (once not twice).


Ah, I see now. Looks like a bug to me. I do not understand the code
well enough to fix it, however. I am attaching a minimal example for
Hans.

(meanwhile, you could use \bookmark without the optional argument).

Best wishes,
Taco


\setupinteraction[state=start] 
\placebookmarks[chapter][chapter]
\setupinteractionscreen[option=bookmark]

\starttext
\chapter{In the beginning}
\bookmark[chapter]{In initio} % Without [chapter], this is fine!

Oh no.
\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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bookmark question

2008-02-06 Thread Hans Hagen
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


 I would like the bookmarks to appear once and not in the TOC.
 Perhaps Hans can take the above code, as indeed your code works but
 not in the above code.
 
 Best wishes
 Wim
 
 
 Taco Hoekwater wrote:
 WN wrote:

 I think chapter titles are supposed appear automatically in the
 bookmarks, no need for an explicit \bookmark.
   
 True enough. But should they appear twice ?
 I want a custom bookmark for the table of contents and list of figures,
 so I used \bookmark[chapter] to include these (once not twice).

 Ah, I see now. Looks like a bug to me. I do not understand the code
 well enough to fix it, however. I am attaching a minimal example for
 Hans.

 (meanwhile, you could use \bookmark without the optional argument).

 Best wishes,
 Taco
 

 ___
  

 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___
  

 
 
 
 
 
 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


-- 

-
   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
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bookmark question

2008-02-06 Thread Taco Hoekwater
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?

Cheers,
Taco

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bookmark question

2008-02-06 Thread Taco Hoekwater
Hans Hagen wrote:
 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

So what is wrong with this input then?

% engine=pdftex
\setupinteraction[state=start]
\placebookmarks

\starttext
\chapter{In the beginning}

\bookmark[chapter]{In initio} % Without [chapter], this is fine!

Oh no.
\stoptext

This creates three (3!) chapter bookmark entries:

   In the beginning
   In initio
   In initio


instead of the expected 1:

   In initio


Best wishes,
Taco
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___