diff options
author | Aditya Mahajan <adityam@umich.edu> | 2012-02-28 19:37:05 -0500 |
---|---|---|
committer | Aditya Mahajan <adityam@umich.edu> | 2012-02-28 19:37:05 -0500 |
commit | 3c7f5f8f1ee5b6bd16f5a4b9e637a4fda03fcdfc (patch) | |
tree | 28828127877791f360045ea3abdb7aa64ebb313a /default.context | |
parent | 4594c7eeaee4e82237d4c52f011441143ad321d8 (diff) | |
download | pandoc-3c7f5f8f1ee5b6bd16f5a4b9e637a4fda03fcdfc.tar.gz |
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.
Diffstat (limited to 'default.context')
-rw-r--r-- | default.context | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/default.context b/default.context index f2710a8e9..f6887640c 100644 --- a/default.context +++ b/default.context @@ -16,9 +16,14 @@ \setupwhitespace[medium] -\setuphead[section] [style=\tfc$if(number-sections)$$else$,number=no$endif$] -\setuphead[subsection] [style=\tfb$if(number-sections)$$else$,number=no$endif$] -\setuphead[subsubsection][style=\bf$if(number-sections)$$else$,number=no$endif$] +\setuphead[chapter] [style=\tfd] +\setuphead[section] [style=\tfc] +\setuphead[subsection] [style=\tfb] +\setuphead[subsubsection][style=\bf] + +$if(number-sections)$$else$ +\setuphead[chapter, section, subsection, subsubsection][number=no] +$endif$ \definedescription [description] |