Skip to content
Discussion options

You must be logged in to vote

Is is possible to add numbers to figures and tables in html output without adding crossreff at all?

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-

---
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.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@davidbudzynski
Comment options

@mcanouil
Comment options

mcanouil Jun 1, 2023
Collaborator

@cderv
Comment options

cderv Jun 1, 2023
Maintainer

@davidbudzynski
Comment options

Answer selected by davidbudzynski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants