HTML output numbered figures and tables without using crossref? #5775
-
DescriptionIs is possible to add numbers to figures and tables in html output without adding crossreff at all? I'm looking into using quarto as a replacement of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What do you mean by not adding crossref at all ? You can have numbers to figure and tables by adding the correct prefix in the label i.e ---
title: Figure
format: html
---
```{r}
#| label: fig-pressure
#| fig-cap: "Vapor Pressure of Mercury as a Function of Temperature"
plot(pressure)
```
This is indeed related to cross ref feature (https://quarto.org/docs/authoring/figures.html#cross-references) but no need to create reference to the figure in other place. It will just trigger the labelling and numbering. |
Beta Was this translation helpful? Give feedback.
What do you mean by not adding crossref at all ?
You can have numbers to figure and tables by adding the correct prefix in the label i.e
fig-
This is indeed related to cross ref feature (https://quarto.org/docs/authoring/figures.html#cross-references) but no need to create reference to the figure in other place. It will just trigger the labelling and numbering.