Better support for unnumbered sections
In ConTeXt, the canonical method to get unumbered sections is to use \title {Unnumbered chapter} \subject {Unnumbered section} \subsubject {Unnumbered subsection} etc. However, pandoc generates \section {...} tags irrespective of whether `number-sections` is active or not. Personally I think that the default pandoc output is better than generating `\title`, `\subject`, etc. in the output. The current patch sets `number=no` for first four level of section heads when `number-sections` is not set.
This commit is contained in:
parent
4594c7eeae
commit
3c7f5f8f1e
1 changed files with 8 additions and 3 deletions
|
@ -16,9 +16,14 @@
|
||||||
|
|
||||||
\setupwhitespace[medium]
|
\setupwhitespace[medium]
|
||||||
|
|
||||||
\setuphead[section] [style=\tfc$if(number-sections)$$else$,number=no$endif$]
|
\setuphead[chapter] [style=\tfd]
|
||||||
\setuphead[subsection] [style=\tfb$if(number-sections)$$else$,number=no$endif$]
|
\setuphead[section] [style=\tfc]
|
||||||
\setuphead[subsubsection][style=\bf$if(number-sections)$$else$,number=no$endif$]
|
\setuphead[subsection] [style=\tfb]
|
||||||
|
\setuphead[subsubsection][style=\bf]
|
||||||
|
|
||||||
|
$if(number-sections)$$else$
|
||||||
|
\setuphead[chapter, section, subsection, subsubsection][number=no]
|
||||||
|
$endif$
|
||||||
|
|
||||||
\definedescription
|
\definedescription
|
||||||
[description]
|
[description]
|
||||||
|
|
Loading…
Reference in a new issue