numbering sections/subsections
I’m trying to get my sections numbered with capital letters and my subsections with Arabic numbers. So far, no joy. What am I missing? Alan Mwe: with ConText ver: 2022.01.21 20:13 LMTX fmt: 2022.2.1. (The problem persists when I run ConTeXt online) \setuphead[section][conversion=A] \setuphead[subsection][conversion=n, sectionsegements=section:subsection, stopper={.}] \starttext \startsection[title=New section] \input knuth \startsubsection[title=New subsection] \input ward \stopsubsection \stopsection \stoptext
Am 10.07.22 um 00:35 schrieb Alan Bowen via ntg-context:
I’m trying to get my sections numbered with capital letters and my subsections with Arabic numbers. So far, no joy. What am I missing?
Alan
Mwe: with ConText ver: 2022.01.21 20:13 LMTX fmt: 2022.2.1. (The problem persists when I run ConTeXt online)
\setuphead[section][conversion=A] \setuphead[subsection][conversion=n, sectionsegements=section:subsection, stopper={.}]
\definestructureconversionset[mySet][A,n,A,n][n] % starts at part! \setuphead[section,subsection][sectionconversionset=mySet] \setuphead[subsection][sectionsegments=section:subsection, stopper={.}] % found in https://wiki.contextgarden.net/Titles
\starttext
\startsection[title=New section] \input knuth \startsubsection[title=New subsection] \input ward \stopsubsection \stopsection
\stoptext
Hraban
Thank you, Hraban, for the solution and the link! All best, Alan On Sat, Jul 9, 2022 at 6:59 PM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote:
Am 10.07.22 um 00:35 schrieb Alan Bowen via ntg-context:
I’m trying to get my sections numbered with capital letters and my subsections with Arabic numbers. So far, no joy. What am I missing?
Alan
Mwe: with ConText ver: 2022.01.21 20:13 LMTX fmt: 2022.2.1. (The problem persists when I run ConTeXt online)
\setuphead[section][conversion=A]
\setuphead[subsection][conversion=n, sectionsegements=section:subsection, stopper={.}]
\definestructureconversionset[mySet][A,n,A,n][n] % starts at part! \setuphead[section,subsection][sectionconversionset=mySet] \setuphead[subsection][sectionsegments=section:subsection, stopper={.}]
% found in https://wiki.contextgarden.net/Titles
\starttext
\startsection[title=New section] \input knuth \startsubsection[title=New subsection] \input ward \stopsubsection \stopsection
\stoptext
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
Am 10.07.22 um 22:25 schrieb Alan Bowen via ntg-context:
Thank you, Hraban, for the solution and the link!
You’re welcome!
\definestructureconversionset[mySet][A,n,A,n][n] % starts at part! \setuphead[section,subsection][sectionconversionset=mySet] \setuphead[subsection][sectionsegments=section:subsection, stopper={.}]
% found in https://wiki.contextgarden.net/Titles https://wiki.contextgarden.net/Titles
Afterwards I recognized, if you use "default" instead of a custom name, you don’t need the setting in \setuphead. Hraban
Thanks, again, Hraban. This is very helpful. Best, Alan On Mon, Jul 11, 2022 at 5:53 AM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote:
Am 10.07.22 um 22:25 schrieb Alan Bowen via ntg-context:
Thank you, Hraban, for the solution and the link!
You’re welcome!
\definestructureconversionset[mySet][A,n,A,n][n] % starts at part! \setuphead[section,subsection][sectionconversionset=mySet] \setuphead[subsection][sectionsegments=section:subsection,
stopper={.}]
% found in https://wiki.contextgarden.net/Titles https://wiki.contextgarden.net/Titles
Afterwards I recognized, if you use "default" instead of a custom name, you don’t need the setting in \setuphead.
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
participants (2)
-
Alan Bowen
-
Henning Hraban Ramm