Gerben Wierda schrieb am 23.10.2021 um 15:51:
On 23 Oct 2021, at 15:34, Wolfgang Schuster <wolfgang.schuster.li...@gmail.com> 
wrote:

 Gerben Wierda via ntg-context schrieb am 23.10.2021 um 15:20:
I’d like a book with chapters to have sections/parts, e.g. something that 
groups a few \chapter elements together. Is there support for this in LMTX? 
I.e. in such a way that it also shows up in the table of contents?
You can use \part.
Yes. Thanks. But that leads to additional questions:
- how do I get the parts to show up in the table of contents? Because I tried 
\part but it did not show up
I can't reproduce the problem, do you have a example.
- how do I let chapters number on (not restart in each part, and not a x.y 
number but simply ‘2. Chapter’
Use \defineresetset as shown below.
- what is a good way to create actual RHS ‘title’ pages for each chapter?
Use a doublesided layout.
- how do I get parts to number with Roman numerals?
See below.


% Change the number conversion for section titles

\defineconversionset [section] [Romannumerals] [numbers]

\setuphead
  [sectionconversionset=section]

% Show only the chapter value for chapter

\setuphead
  [chapter]
  [sectionsegments=chapter]

% Don't reset the counter for parts and chapters

\defineresetset [default] [0,0] [1]

\starttext

\completecontent

\dorecurse{4}
  {\expanded{\part{Part \recurselevel}}
   \dorecurse{5}{\expanded{\chapter{Chapter \recurselevel}}}}

\stoptext

Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to