Section Numbering Starts at 0 (e.g., 0.1, 0.1.1) in PDF Output with number-sections: true #11798
Replies: 2 comments 18 replies
-
Unfortunately your example is not reproducible as it has no content, thus there is no way to see what you are reporting here. Please, use The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. Finally, you are using options that does not exist in Quarto such as You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
Add to your YAML:
(see Numbering in the Quarto documentation) |
Beta Was this translation helpful? Give feedback.
-
Description
Hi everyone,
When generating a PDF with Quarto, the section numbering starts with "0" (e.g., 0.1, 0.1.1) instead of beginning at "1". This appears to be caused by the inclusion of chapter numbering, which starts at zero. I want to remove chapter numbering entirely so that sections and subsections are numbered independently (e.g., 1, 1.1, 1.1.1) without any leading "0".
Here is a minimal reproducible example of the YAML configuration:
Expected Behavior:
Sections and subsections should be numbered independently, starting at "1" (e.g., 1, 1.1, 1.1.1).
Actual Behavior:
The numbering starts with a leading "0" (e.g., 0.1, 0.1.1), which corresponds to chapter numbering (I assume).
Attempted Fixes:
\setcounter{chapter}{1}
in the include-in-header option, but this did not resolve the issue.crossref: chapters: false
to the YAML configuration, but chapter numbering still appears as "0".Desired Outcome:
A way to completely remove chapter numbering from the PDF output while retaining section numbering starting at "1" (e.g., 1, 1.1, 1.1.1).
Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions