Missing Chapter Numbers
\setuphead[chapter][number=yes,] \setuphead[section][number=no,] \setuphead[subsection][placehead=hidden,] \definehead[scenesubsection][subsection] \starttext \dorecurse{5}{ \chapter{Chapter Name} \section{Section Name} \startscenesubsection \input tufte \stopscenesubsection } \stoptext The chapter headings should be enumerated 1 through 5, but some chapter numbers are either hidden or enumerated incorrectly. Using "placehead=no" causes the spacing to change when framing an entire section. Related: https://github.com/contextgarden/context-mirror/blob/b14f992ef5f4e868c9959b1... Any ideas on how to work around this issue? Thank you!
The following code does not hide the headings: \setuphead[subsection][ placehead=no, number=no, ] % placehead=hidden breaks the counters? \setuphead[subsubsection][ placehead=no, number=no, ] \starttext \chapter{chapter} chapter \section{section} section \section{subsection} subsection \section{subsubsection} subsubsection \stoptext The following code also does not hide the headings: % placehead=hidden breaks the counters? \setuphead[subsection, subsubsection][ placehead=no, number=no, ] \starttext \chapter{chapter} chapter \section{section} section \section{subsection} subsection \section{subsubsection} subsubsection \stoptext However, adding "section" makes the sub- and subsubsections hide as expected: \setuphead[section, subsection, subsubsection][ placehead=no, number=no, ] \starttext \chapter{chapter} chapter \section{section} section \section{subsection} subsection \section{subsubsection} subsubsection \stoptext This behaviour appears to violate the principle of least astonishment.
On 10/22/2017 08:59 PM, Thangalin wrote:
The following code does not hide the headings: [..] The following code also does not hide the headings: [...] However, adding "section" makes the sub- and subsubsections hide as expected: [...]
Hi Thangalin, I’m afraid that it doesn’t work as you expect, because you only used \section commands (no \subsection or \subsubsection ones). \setuphead[subsection][ placehead=hidden, number=no] % placehead=hidden breaks the counters? \setuphead[subsubsection][ placehead=hidden, number=no] \starttext \startTEXpage[offset=1em] \chapter{chapter} chapter \section{section} section \subsection{subsection} subsection \subsubsection{subsubsection} subsubsection \stopTEXpage \stoptext
This behaviour appears to violate the principle of least astonishment.
Simple get a break, too much ConTeXt for now ;-). Cheers, Pablo -- http://www.ousia.tk
participants (2)
-
Pablo Rodriguez
-
Thangalin