mkii to mkiv - section numbering with minimal example
Further to my previous query about updating from mkii to mkiv, I have solved some of the issues by trial and error but am beginning to identify the ones I can't resolve. My first minimal example is below. I want the sections and subsections not to prefix the part and chapter numbering, giving me this output: Part 1 Chapter 1.1 Section 1 Subsection 1.1 The line that used to achieve this result was \setupsection[section-3][previousnumber=no] and there was also \setuphead[section][partnumber=no,chapternumber=no] but neither of these seems to work in mkiv Minimal example: \setupsection[section-3][previousnumber=no] \setuphead[section][partnumber=no,chapternumber=no] \starttext \part{Part} Part \chapter{Chapter} Chapter \section{Section} Section \subsection{Subsection} Subsection \stoptext Many thanks for any pointers. Duncan
On 6/23/2019 10:26 AM, Duncan Hothersall wrote:
Further to my previous query about updating from mkii to mkiv, I have solved some of the issues by trial and error but am beginning to identify the ones I can't resolve. My first minimal example is below.
I want the sections and subsections not to prefix the part and chapter numbering, giving me this output:
Part 1 Chapter 1.1 Section 1 Subsection 1.1
The line that used to achieve this result was
\setupsection[section-3][previousnumber=no]
and there was also
\setuphead[section][partnumber=no,chapternumber=no]
but neither of these seems to work in mkiv
Minimal example:
\setupsection[section-3][previousnumber=no] \setuphead[section][partnumber=no,chapternumber=no]
\starttext \part{Part} Part \chapter{Chapter} Chapter \section{Section} Section \subsection{Subsection} Subsection \stoptext
Many thanks for any pointers. in the test suite there are all kind of examples (zip can be downloaded from the website)
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On 6/23/19 10:26 AM, Duncan Hothersall wrote:
Further to my previous query about updating from mkii to mkiv, I have solved some of the issues by trial and error but am beginning to identify the ones I can't resolve. My first minimal example is below.
I want the sections and subsections not to prefix the part and chapter numbering, giving me this output:
Part 1 Chapter 1.1 Section 1 Subsection 1.1
Hi Duncan, I guess this may be what you want to do: \setuphead[part][placehead=yes] \setuphead[section][sectionsegments=section] \setuphead[subsection][sectionsegments=section:subsection] \starttext \part{Part} \chapter{Chapter} \section{Section} \subsection{Subsection} \stoptext I hope it helps, Pablo -- http://www.ousia.tk
participants (3)
-
Duncan Hothersall
-
Hans Hagen
-
Pablo Rodriguez