Open cavo789 opened 5 years ago
In case it helps, I've also run into this problem, using the latest template from master
. first-chapter: 2
results in the first chapter being 1, and not specifying it results in chapters starting from 0.
Also, if you use --top-level-division=chapter
, then first-chapter: 1
will start the chapters from 1. I think this is the right flag to use when generating books as otherwise Pandoc treats chapter headings as section headings, so you end up with "1.1 Introduction" instead of "1 Introduction".
Good morning
By having the
book: true
parameter in my YAML block, my headings are starting at 0 (the documentation mention that defaults is 1).So, I've put
first-chapter: 5
for test purposes and I can see that numbering is starting at 4. (#74)Is this how the first-chapter option is intended to work? Should we specify the desired number + 1? (2 for getting things started at 1)
Thanks!
My markdown