From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: Gerben Wierda <gerben.wierda@rna.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A book with sections
Date: Sat, 23 Oct 2021 16:43:49 +0200 [thread overview]
Message-ID: <bd286fe6-9f7e-2ab0-5e7d-420cecb005f4@gmail.com> (raw)
In-Reply-To: <A2A80763-07AA-4260-977B-0C82DDC14231@rna.nl>
Gerben Wierda schrieb am 23.10.2021 um 15:51:
>> On 23 Oct 2021, at 15:34, Wolfgang Schuster <wolfgang.schuster.lists@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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-10-23 14:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-23 13:20 Gerben Wierda via ntg-context
2021-10-23 13:34 ` Wolfgang Schuster via ntg-context
2021-10-23 13:51 ` Gerben Wierda via ntg-context
2021-10-23 14:43 ` Wolfgang Schuster via ntg-context [this message]
2021-10-23 14:48 ` Pablo Rodriguez via ntg-context
2021-10-23 23:01 ` Bruce Horrocks via ntg-context
2021-10-24 8:33 ` Duncan Hothersall via ntg-context
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=bd286fe6-9f7e-2ab0-5e7d-420cecb005f4@gmail.com \
--to=ntg-context@ntg.nl \
--cc=gerben.wierda@rna.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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).