diff options
| author | Albert Krewinkel <[email protected]> | 2022-06-06 18:24:28 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-06 09:24:28 -0700 |
| commit | e5c41f11de39d71241bdaf4cc9cd6890846db742 (patch) | |
| tree | e28ae0de026d37ee201c6b68c9f39a0a5fc71531 /data | |
| parent | 78443004145adb85665cf799ccdfc115f64e47d1 (diff) | |
ConTeXt writer: use "sectionlevel" environment for headings (#8106)
The document hierarchy is now conveyed using the
`\startsectionlevel`/`\stopsectionlevel` by default. This makes it easy
to include pandoc-generated snippets in documents at arbitrary levels.
The more semantic environments "chapter", "section", "subsection", etc.
are used if the `--top-level-division` command line parameter is set to
a non-default value.
Closes: #5539
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/default.context | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/default.context b/data/templates/default.context index 49b2c1f6f..78055daed 100644 --- a/data/templates/default.context +++ b/data/templates/default.context @@ -80,6 +80,10 @@ $endif$ \setuphead[subsubsubsection] [style=\sc] \setuphead[subsubsubsubsection][style=\it] +\definesectionlevels + [default] + [section, subsection, subsubsection, subsubsubsection, subsubsubsubsection] + $if(headertext)$ \setupheadertexts$for(headertext)$[$headertext$]$endfor$ $endif$ |
