
Worth also looking at something like
\setupsection[section-2][previousnumber=no] - see
https://wiki.contextgarden.net/Command/setupsection for (some) details
about how each level of hierarchy is addressable through this mechanism.
Duncan
On Fri, 4 Jul 2025 at 12:58, John Was
Dear Denis
Thanks. The [number=no] option doesn't seem to work but I'll look into \startpart... \stoppart, which aren't in the (obviously outdated) reference manual that I was consulting.
Best wishes
John *🇪🇺 * Слава Україні! * 🇺🇦*
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#m_4605191063482072150_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Fri, 4 Jul 2025 at 12:20, Denis Maier via ntg-context < ntg-context@ntg.nl> wrote:
Also, \startpart is listed on this page: https://wiki.contextgarden.net/Command/_startsection
*Von:* denismaier@mailbox.org
*Gesendet:* Freitag, 4. Juli 2025 13:12 *An:* 'mailing list for ConTeXt users' *Betreff:* AW: [NTG-context] Bookmark hierarchy Have you tried \setuphead[part][number=no]?
*Von:* John Was
*Gesendet:* Freitag, 4. Juli 2025 13:00 *An:* mailing list for ConTeXt users *Betreff:* [NTG-context] Bookmark hierarchy Hello.
I'm still in the newbie category with ConTeXt, and am getting to grips with bookmarking of PDFs for the first time ever. The following example gives the correct hierarchy of subordinated bookmarks - part, chapter, and section, each progressively indented in the bookmark column at the left. However, I don't want the parts to have numbers at all, and I want the chapters to be numbered 1, 2, etc. (not 1.1, 1.2, etc.). If I ever go live with ConTeXt, the sections won't have any numbers at all (and I can see how to set this up), but in this default example I would like them also to shift up one decimal place: 1.1., not 1.1.1, and so on. I'm guessing there's an option in \part that I should be invoking, but I don't immediately see what that is (there doesn't seem to be a \startpart...\stoppart to allow the relatively straightforward customization that we get with chapters and sections). Here is the example:
\setupinteraction
[state=start]
\setupinteractionscreen
[option=bookmark]
\placebookmarks[part,chapter,section]
\starttext
\part[title=Introduction,bookmark=Introduction,number=off]
\noheaderandfooterlines
INTRODUCTION
\page
\noheaderandfooterlines
\page[odd]
\startchapter[title=First Chapter]
\noheaderandfooterlines
\input tufte
\startsection[title=First section]
\input knuth
\stopsection
\startsection[title=Second section]
\input zapf
\stopsection
\stopchapter
\page[odd]
\startchapter[title=Second Chapter]
\noheaderandfooterlines
\input tufte
\startsection[title=First section]
\input knuth
\stopsection
\startsection[title=Second section]
\input zapf
\stopsection
\stopchapter
\page[odd]
\part[title=PART II,bookmark=Part II,number=off]
PART II
\noheaderandfooterlines
\page
\noheaderandfooterlines
\page[odd]
\startchapter[title=Third Chapter]
\noheaderandfooterlines
\input tufte
\startsection[title=First section]
\input knuth
\stopsection
\startsection[title=Second section]
\input zapf
\stopsection
\stopchapter
\page[odd]
\startchapter[title=Fourth Chapter]
\noheaderandfooterlines
\input tufte
\startsection[title=First section]
\input knuth
\stopsection
\startsection[title=Second section]
\input zapf
\stopsection
\stopchapter
\stoptext
Best wishes
John *🇪🇺 * Слава Україні! *🇺🇦*
Virus-free.www.avg.com http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net
___________________________________________________________________________________