Replies: 2 comments 4 replies
-
CSS won't help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
It seems like some improvement idea for our crossref system. @cscheid do you think numbering for crossref system could be improve to take into account more sub section ? Maybe something for 1.5 ? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
NOTE: This is a cross post from https://stackoverflow.com/questions/76165783/nested-figure-numbers-in-quarto-html-document.
I'm creating an HTML Quarto document, where I have chapter numbers (e.g. Chapter 1), and then sections (e.g. 1.1, 1.2, 1.3, etc.), and sometimes sub-sections numbered, for example, 1.1.1, 1.1.2, 2.1.1. 2.1.2, 2.4.3, etc. Within the sections or subsections, I frequently display figure/listing output and am automatically applying caption numbering, but the caption numbers seem to repeat the section number or subsection number (e.g. Figure 1.1 for figures in Section 1.1). How can I start figure/listing caption numbers as X.Y1.Y2.Z, where X is the chapter number, Y1 is the section number, Y2 is the (optional) subsection number, and Z is sequentially numbered and restarts in each section or subsection.
When I currently apply listing/figure numbering, this creates the following output:
Instead, what I'd like is the following:
Does anyone have any idea how I can change the default numbering to nest the figure number into the section or subsection number? If this can't be accomplished directly in Quarto, is there a way to accomplish this with CSS, perhaps?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions