From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TOC chapter and section numbering
Date: Wed, 19 Aug 2020 16:44:39 +0200 [thread overview]
Message-ID: <5be7ce35-976b-f691-4893-486239f5b315@gmail.com> (raw)
In-Reply-To: <PyHTItrGPrEN5t0ZAImT6s3XygbFuxm4TtBpe-XsfxfZ2u-MOkLN8UJo5MwcXpwjb15lGFTAOJbOihK-vMapt5aNHIt80gsCm6NY3izfd0I=@protonmail.ch>
Adrian schrieb am 18.08.2020 um 06:40:
> Hello,
>
> I'm attempting to typeset a short book using ConTeXt
> (current version: 2020.08.09 22:03).
>
> *EXAMPLE*:
>
> [...]
>
> I would like all the chapters to be prefixed with "Chapter RN." and the
> sections to keep a single count,
> for example:
>
> *Chapter I. Introductory .....*
> 1. The concept of a function
> 2. Extension and intension
> 3. Functions of several variables
> 4. Abstraction
> *Chapter II. Lambda Conversion .....*
> 5. Primitive symbols and formulas
> 6. Conversion
> 7. Fundamental theorems on well-formed formulas and on the normal form
>
> I tried to the following for the chapters:
>
> \defineconversion[church][Chapter \Romannumerals.\quad]
> \setuphead[chapter][conversion=church]
>
> Which appeared to generate the prefix correctly but it overlapped the
> title.
\setuplabeltext
[en] [chapter=Chapter ]
\defineresetset
[default] [0,0,0] [1]
\defineconversionset
[section] [n,R,n] [n]
\setuphead
[chapter]
[sectionconversionset=section,
sectionstopper=.]
\setuphead
[section]
[sectionsegments=section,
sectionconversionset=section,
sectionstopper=.]
\setuphead
[title]
[alternative=middle,
style=WORD]
\setuplist
[chapter]
[label=yes,
style=bold,
width=fit,
distance=\spaceamount]
\setuplist
[section]
[margin=3em,
width=1.5em]
\starttext
\completecontent
...
\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:[~2020-08-19 14:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-18 4:40 Adrian
2020-08-18 7:01 ` Taco Hoekwater
2020-08-19 14:44 ` Wolfgang Schuster [this message]
2020-08-19 17:59 ` Adrian
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=5be7ce35-976b-f691-4893-486239f5b315@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--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).