From: Pablo Rodriguez <oinos@gmx.es>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: issues with bookmarks
Date: Sun, 26 Jul 2015 20:01:40 +0200 [thread overview]
Message-ID: <55B52084.5050806@gmx.es> (raw)
Hans,
sorry for the long message, but I’m afraid that bookmarks have some issues.
1. When specifying sectionblocks, bookmarks for parts don’t contain
chapters as child elements:
\setupinteraction[state=start]
\placebookmarks[part, chapter][part, chapter]
\setuphead[part][placehead=yes]
\starttext
\startfrontmatter
\chapter{Foreword}
\chapter{Introduction}
\stopfrontmatter
\startbodymatter
\part{First Part}
\chapter{First Chapter}
\chapter{Second Chapter}
\part{Second Part}
\chapter{Third Chapter}
\chapter{Fourth Chapter}
\stopbodymatter
\stoptext
It isn’t related to parts and chapters, it also happens with chapters
and sections:
\setupinteraction[state=start]
\placebookmarks[chapter, section][chapter, section]
\starttext
\startfrontmatter
\section{Foreword}
\section{Introduction}
\stopfrontmatter
\startbodymatter
\chapter{First chapter}
\section{First section}
\section{Second section}
\chapter{Second chapter}
\section{Third section}
\section{Fourth section}
\stopbodymatter
\stoptext
It works fine, if sectionblocks are removed:
\setupinteraction[state=start]
\placebookmarks[part, chapter][part, chapter]
\setuphead[part][placehead=yes]
\starttext
\chapter{Foreword}
\chapter{Introduction}
\part{First Part}
\chapter{First Chapter}
\chapter{Second Chapter}
\part{Second Part}
\chapter{Third Chapter}
\chapter{Fourth Chapter}
\stoptext
2. Sectionblocks also displace bookmark location, such as in this sample:
\setupinteraction[state=start]
\placebookmarks[part, chapter, hiddentitle][part, chapter]
\setuphead[part][placehead=yes]
\definehead
[hiddentitle]
[chapter]
\setuphead
[hiddentitle]
[number=no]
\starttext
\hiddentitle{[Copyright]}
\startfrontmatter
\chapter{Foreword}
\chapter{Introduction}
\stopfrontmatter
\startbodymatter
\part{First Part}
\chapter{First Chapter}
\chapter{Second Chapter}
\part{Second Part}
\chapter{Third Chapter}
\chapter{Fourth Chapter}
\stopbodymatter
\stoptext
Foreword and Introduction are listed after Fourth Chapter.
If sectionblocks are removed, bookmark listing is ordered right:
\setupinteraction[state=start]
\placebookmarks[part, chapter, hiddentitle][part, chapter]
\setuphead[part][placehead=yes]
\definehead
[hiddentitle]
[chapter]
\setuphead
[hiddentitle]
[number=no]
\starttext
\hiddentitle{[Copyright]}
\chapter{Foreword}
\chapter{Introduction}
\part{First Part}
\chapter{First Chapter}
\chapter{Second Chapter}
\part{Second Part}
\chapter{Third Chapter}
\chapter{Fourth Chapter}
\stoptext
3. In the previous sample, as well in the following one, bookmark
hierarchy is wrong:
\setupinteraction[state=start]
\placebookmarks[part, chapter, hiddentitle][part, chapter]
\setuphead[part][placehead=yes]
\definehead
[hiddentitle]
[chapter]
\setuphead
[hiddentitle]
[number=no]
\starttext
\hiddentitle{[Copyright]}
\startfrontmatter
\chapter{Foreword}
\chapter{Introduction}
\stopfrontmatter
\startbodymatter
\part{First Part}
\chapter{First Chapter}
\chapter{Second Chapter}
\part{Second Part}
\chapter{Third Chapter}
\chapter{Fourth Chapter}
\stopbodymatter
\startbackmatter
\chapter{Conclusions}
\chapter{Epilogue}
\stopbackmatter
\stoptext
I’m afraid that (the misplaced Foreword or Introduction and) Conclusions
and Epilogue should be first-level bookmarks (such as Copyright is).
After a sectionblock, chapters should have first-level bookmarks if
there is no part bookmark containing them. Otherwise, this will be the
misleading impression that the chapters are children of the part bookmark.
Am I missing something or have I hit a bug?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2015-07-26 18:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-26 18:01 Pablo Rodriguez [this message]
2015-07-26 21:58 ` Alan BRASLAU
2015-07-27 12:39 ` Hans Hagen
2015-07-27 12:47 ` Hans Hagen
2015-07-27 14:13 ` Pablo Rodriguez
2015-07-27 17:34 ` Hans Hagen
2015-07-27 18:21 ` Pablo Rodriguez
2015-07-27 13:26 ` juh
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=55B52084.5050806@gmx.es \
--to=oinos@gmx.es \
--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).