Section numbers not generated automatically #3604
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I think this is a bug. I can confirm that in Zettlr 2.3.0, the variable number-sections does not have any effect for me either, when used in the YAML block in a document. As a workaround, you can alter the defaults in the Assets Manager (>File>Preferences>Assets Manager). Make sure that number-sections: true is set in the defaults file for PDF. This will then output all PDFs with numbered sections. |
Beta Was this translation helpful? Give feedback.
-
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.) |
Beta Was this translation helpful? Give feedback.
-
I always have the headings/subheadings numbered in the body of my files. Is there a way to have Zettlr do the same, but independent of export? In other words, I would like to see numbered headings on my screen. After all, the Zettlr Table of Contents in the outline pane numbers all the headings. |
Beta Was this translation helpful? Give feedback.
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.)