mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
0d6c2e3e22
Unlist sections even if `--top-level-division` is not defined.
56 lines
1.1 KiB
Markdown
56 lines
1.1 KiB
Markdown
# Unnumbered and unlisted headings in ConTeXt
|
|
|
|
```
|
|
% pandoc --to=context
|
|
# Preface {.unlisted -}
|
|
|
|
Nullam rutrum.
|
|
|
|
# Introduction
|
|
|
|
Nullam eu ante vel est convallis dignissim.
|
|
|
|
# Methods
|
|
|
|
Sed diam. Nulla posuere. Praesent fermentum tempor tellus. Nam
|
|
vestibulum accumsan nisl. Nam vestibulum accumsan nisl.
|
|
|
|
# References {-}
|
|
^D
|
|
\startsubject[title={Preface},reference={preface},number=no,incrementnumber=no]
|
|
|
|
Nullam rutrum.
|
|
|
|
\stopsubject
|
|
|
|
\startsectionlevel[title={Introduction},reference={introduction}]
|
|
|
|
Nullam eu ante vel est convallis dignissim.
|
|
|
|
\stopsectionlevel
|
|
|
|
\startsectionlevel[title={Methods},reference={methods}]
|
|
|
|
Sed diam. Nulla posuere. Praesent fermentum tempor tellus. Nam
|
|
vestibulum accumsan nisl. Nam vestibulum accumsan nisl.
|
|
|
|
\stopsectionlevel
|
|
|
|
\startsectionlevel[title={References},reference={references},number=no,incrementnumber=no]
|
|
|
|
\stopsectionlevel
|
|
```
|
|
|
|
## Semantic Headings with `--top-level-division`
|
|
```
|
|
% pandoc --to=context --top-level-division=chapter
|
|
# Bibliography {-}
|
|
None
|
|
^D
|
|
\startchapter[title={Bibliography},reference={bibliography},number=no,incrementnumber=no]
|
|
|
|
None
|
|
|
|
\stopchapter
|
|
```
|