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. Is this a known problem/bug or is there something I should do ? I am using ConTeXt ver: 2008.02.01 17:25 MKII fmt: 2008.2.4 int: english/english Kind regards Wim
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
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 ___________________________________________________________________________________
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
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). 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 ___________________________________________________________________________________
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 -----------------------------------------------------------------
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
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 -----------------------------------------------------------------
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
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 ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Taco Hoekwater
-
WN