Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pmazaitis opened this issue Dec 30, 2015 · 4 comments
Closed

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

pmazaitis opened this issue Dec 30, 2015 · 4 comments

Comments

@pmazaitis
Copy link

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
Copy link
Owner

jgm commented Dec 31, 2015 via email

@ousia
Copy link
Contributor

ousia commented Dec 31, 2015

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
Copy link

ghost commented May 14, 2017

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

@jgm jgm closed this as completed in #4295 Jan 25, 2018
jgm pushed a commit that referenced this issue Jan 25, 2018
Fixes #2609.

This PR introduces the new-style section headings: `\section[my-header]{My Header}` -> `\section[title={My Header},reference={my-header}]`.

On top of this, the ConTeXt writer now supports the `--section-divs` option to write sections in the fenced style, with `\startsection` and `\stopsection`.
@pmazaitis
Copy link
Author

Brilliant; many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants