yaml titles vs first-level headers in quarto pdf books #6619
-
DescriptionI'm building a quarto book (https://github.com/d-morrison/rme, https://d-morrison.github.io/rme/), and I'm having trouble with the header numbering in the pdf version (https://d-morrison.github.io/rme/Regression-Models-for-Epidemiology.pdf). Currently, I've defined each chapter's title in the yaml header for the corresponding .qmd file, and I've used level-one headers ( However, the pdf version is not working correctly: it treats the chapter yaml title as a level-one header, and whether I set Am I configuring the pdf settings incorrectly, or is this a bug? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
FYI, I am going to look into this later this week (if someone else does not in the meantime). |
Beta Was this translation helpful? Give feedback.
-
In our doc, we explain that title for chapters can be either level 1 heading using So I am curious of why doing that, before we can see how |
Beta Was this translation helpful? Give feedback.
-
@d-morrison Did you manage to get the desired results? |
Beta Was this translation helpful? Give feedback.
Level 1 header is equivalent to
title
so it's exactly as expected.Starts your section from a level 2, and use
shift-heading-level-by: -1
forrevealjs
.PS: when sharing an example repository, please keep it simple: no need for code cells or any computations and no need for 10+ unrelated options, which only makes it harder to focus on what matters.