rootstock icon indicating copy to clipboard operation
rootstock copied to clipboard

Allow use of --number-sections

Open phiresky opened this issue 4 years ago • 1 comments

It would be good to be able to number the sections. Pandoc has an option for this, but it's not directly usable.

Changes in rootstock:

  • Authors, Abstract, Bibliography should be {.unnumbered}
  • number-sections: true in default.yaml

Changes in pandoc itself:

This probably needs fixing of https://github.com/jgm/pandoc/issues/5071 since otherwise with the recommended level-two headings (or with shift-heading-level-by: 1) the numbers are wrong.

phiresky avatar Jul 22 '21 16:07 phiresky

Thanks for sharing this. Numbered sections were mentioned by @agitter in https://github.com/manubot/rootstock/issues/365#issuecomment-699995029.

I think https://github.com/greenelab/covid19-review/pull/207 is a helpful reference.

Perhaps we should add a note in USAGE.md about numbering sections?

dhimmel avatar Jul 22 '21 17:07 dhimmel