nmfs-opensci / quarto_titlepages

A Quarto extension for making title and cover pages for PDF output.
https://nmfs-opensci.github.io/quarto_titlepages/
Creative Commons Zero v1.0 Universal
115 stars 20 forks source link

Equation numbering doesn't work as expected with "number-sections: false" in YML #10

Closed mladenjovanovic closed 1 year ago

mladenjovanovic commented 2 years ago

When using academic-static template, with "number-sections: false" in the YML, equations numbering still have section number beforehand (i.e., 0.1, 0.2, 0.3) instead of integer (i.e., 1, 2, 3). This is not the case for figures. I have attached the files to reproduce the results. files.zip

eeholmes commented 1 year ago

@mladenjovanovic document class scrbook doesn't work with number-sections: false. It seems to be something just for scrartcl class:

    documentclass: scrartcl
    number-sections: false

If you need the scrbook class (for other features), then you'll need to figure out how to turn off section numbering for that class. https://ctan.org/pkg/scrbook?lang=en

This is actually why I don't like setting the latex class and package options with the YAML variables. It can be really hard to figure out example what latex command is being issued. For number-sections: false, you'd have to dig into the pandoc templates that Quarto is using to figure it out. But clearly it is a command that only works correctly for scrartcl and I wouldn't assume that it would work correctly for any other latex document class.

eeholmes commented 1 year ago

To do:

mladenjovanovic commented 1 year ago

Thanks, @eeholmes. We who do not know latex prefer the YML, but I guess you are completely correct. Thanks for answering my issue. Keep up the great work