Automatic figure caption numbering in HTML? #10122
Unanswered
elizabeth-hirsch
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The figure needs to have cross-reference enabled by using the right prefix. It should be all clear from our doc at: https://quarto.org/docs/authoring/cross-references.html |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Description
I have a Quarto doc that renders to HTML and would like the figures (which are generated using R code) to each have a number before the caption. For example:
Figure 1. A plot displaying xyz
In RMarkdown the figures are numbered automatically, and it appears that when rendering to PDF using Quarto, the same automatic numbering is applied. However when I render to HTML only the caption is printed. Is there a way to add an automatic "Figure 1", "Figure 2", etc under figures in Quarto website?
The syntax I've tried using in code chunks is, for example:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions