You can configure this via the \setuplist[Element][Configuration] command. In 
your case, you would want to set headnumber=no for the part and chapter 
elements.

Best, J

Von: Sylvain Hubert <[email protected]>
Gesendet: Dienstag, 25. November 2025 10:21
An: mailing list for ConTeXt users <[email protected]>
Betreff: [NTG-context] removing \part number from \chapter numbers in toc and 
bookmark

Dear list,

how can one remove the \part number from \chapter numbers? For example:

```tex
\defineresetset[noreset][][0]
\setuphead[chapter][sectionresetset=noreset]
\setupinteraction[state=start,focus=standard]
\setupinteractionscreen[option=bookmark]
\placebookmarks[part,chapter][]

\starttext
\setupcombinedlist[content][list={chapter,part}]
\completecontent

\part{part-I}
\chapter{chapter-a}
\chapter{chapter-b}
\part{part-II}
\chapter{chapter-c}
\chapter{chapter-d}
\stoptext
```

The resulting bookmark and toc is numbered as:

1 part-I
1.1 chapter-a
1.2 chapter-b
2 part-II
2.3 chapter-c
2.4 chapter-d
How to make it like:

((part-I))
first: chapter-a
second: hapter-b
((part-II))
third: chapter-c
fourth: chapter-d

Thanks in advance!
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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
___________________________________________________________________________________

Reply via email to