You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the title. Appreciate the new feature, I think the next step would be to computationally set chapter numbers so they are consistent. Example: I set the chapter number of the first chapter of my document to 0 (foreword), but the chapter after became chapter 2, i.e., there was no chapter 1. In case this is format dependent, I was converting a markdown document to .docx. System is Ubuntu 22.04, pandoc 3.1.5, pandoc-crossref 0.3.16.0 (love those nightlies).
The text was updated successfully, but these errors were encountered:
I do, they are, but there's a caveat: if you use --number-sections, it's pandoc itself which numbers sections, not pandoc-crossref, thus there's a disconnect. That's one of the reasons why numberSections exists.
Now that I think about it, pandoc itself kind of supports number attribute (at least for some writers), so it should be possible to bodge a compatibility layer by force-setting all numbers. But IMO it's pretty low priority, as numberSections offers more flexibility in terms of formatting. Still, here's a silly little lua filter you can use right now if you want:
Thanks, I had missed -M numberSections. Got it to work now, which is fabulous. Didn't get the first option to work, but it's probably for the best -- lot of complexity and things interacting going on here, not necessarily the right direction to take pandoc-crossref
As described in the title. Appreciate the new feature, I think the next step would be to computationally set chapter numbers so they are consistent. Example: I set the chapter number of the first chapter of my document to 0 (foreword), but the chapter after became chapter 2, i.e., there was no chapter 1. In case this is format dependent, I was converting a markdown document to .docx. System is Ubuntu 22.04, pandoc 3.1.5, pandoc-crossref 0.3.16.0 (love those nightlies).
The text was updated successfully, but these errors were encountered: