Skip to content

Section numbers not generated automatically #3604

Discussion options

You must be logged in to vote

numbered-sections is a property that can only be defined in a defaults file, but not in the YAML frontmatter. The reason is that the property does not control anything related to the actual content. Rather, it affects the template as a whole, and as such it needs to be specified in the defaults file. In this regard, Pandoc is always a tad difficult to read, I agree.

A good rule of thumb: Anything that modifies the layout/style/external things of a file needs to go into a defaults file, anything that comprises information about or for the document in question goes into the YAML frontmatter. (This includes any template variables, unfortunately, so the distinction is very fuzzy.)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@etiennethomassen
Comment options

Answer selected by etiennethomassen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants