Re: [NTG-context] mkii to mkiv - section numbering with minimal example
On Sun, 23 Jun 2019 at 19:08, wrote: > > 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 > > > Belated thanks Pablo, I get the digest so I had posted my discovery of this precise solution before I saw you supplying that answer. Apologies! It works well. Duncan ___ 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 ___
Re: [NTG-context] mkii to mkiv - section numbering with minimal example
On Sun, 23 Jun 2019 at 11:00, Hans Hagen wrote: > > in the test suite there are all kind of examples (zip can be downloaded > from the website) > > Thanks Hans. After some searching in the test suite I found the answer, which I'll put here in case someone else is searching for it, which is: \setuphead[section][sectionsegments=section] \setuphead[subsection][sectionsegments=section:subsection] which sets up sections to just be numbered with the section number instead of the part, chapter and section number, and sets up subsections to just be numbered with the section and subsection number. Now that I know how to do it I see mkiv is much cleaner on this code and the change gets reflected in tables of contents etc. This was much harder in mkii. Thanks again. Duncan ___ 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 ___
Re: [NTG-context] mkii to mkiv - section numbering with minimal example
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 ___ 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 ___
Re: [NTG-context] mkii to mkiv - section numbering with minimal example
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 - ___ 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 ___