[NTG-context] mkii to mkiv - section numbering with minimal example

Pablo Rodriguez oinos at gmx.es
Sun Jun 23 13:03:23 CEST 2019


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


More information about the ntg-context mailing list