* Missing Chapter Numbers
@ 2017-05-19 15:38 Thangalin
2017-10-22 18:59 ` Thangalin
0 siblings, 1 reply; 3+ messages in thread
From: Thangalin @ 2017-05-19 15:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
\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/b14f992ef5f4e868c9959b174278c86516d60dbc/tex/context/base/mkiv/strc-sec.mkiv#L930
Any ideas on how to work around this issue?
Thank you!
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Missing Chapter Numbers
2017-05-19 15:38 Missing Chapter Numbers Thangalin
@ 2017-10-22 18:59 ` Thangalin
2017-10-22 19:22 ` Pablo Rodriguez
0 siblings, 1 reply; 3+ messages in thread
From: Thangalin @ 2017-10-22 18:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Missing Chapter Numbers
2017-10-22 18:59 ` Thangalin
@ 2017-10-22 19:22 ` Pablo Rodriguez
0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2017-10-22 19:22 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-10-22 19:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-19 15:38 Missing Chapter Numbers Thangalin
2017-10-22 18:59 ` Thangalin
2017-10-22 19:22 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).