jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.34k stars 3.37k forks source link

Support for start/stop style headings with ConTeXt writer? #2609

Closed pmazaitis closed 6 years ago

pmazaitis commented 8 years ago

At the moment, I'm only able to coax pandoc into generating ConText documents with headings like:

\section[foo]{Foo}

Would it be possible to also support the support the (newer, nesting) start/stop syntax for headings in ConTeXt IV? Hence:

\startsection[title={Foo}]
  Lorem ipsum, bananas foster, eels.
\stopsection

Or, for give me if this is so: is there already a way to get pandoc to do this?

jgm commented 8 years ago

We could change the writer so it does this when --section-divs is specified -- that would be fairly natural.

How would we specify the identifier foo with the new syntax?

ousia commented 8 years ago

How would we specify the identifier foo with the new syntax?

@jgm, using reference.

\startsection[title={Foo}, reference={foo}]
  Lorem ipsum, bananas foster, eels.
\stopsection

I hope it helps.

ghost commented 7 years ago

The --section-divs feature would help with framed section content, accomplished using start/stop sections.

pmazaitis commented 6 years ago

Brilliant; many thanks!