Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/dev-docs/feature-format-matrix/qmd-files/crossref/float/figure/document.qmd
3595 views
---
format:
  docusaurus-md: {}
  docx: {}
  html: {}
  markdown: {}
  pdf: {}
---

## Crossreferenceable "Figure"s

Images with a caption and a label can be referenced using the `@ref` syntax, as @fig-1 shows.

![This is the caption for the figure.]({{< placeholder 400 >}}){#fig-1}

Figures can contain arbitrary content instead of an image. In that case, use the div syntax:

::: {#fig-2}

::: {}

This div is the content of the figure.

:::

This is the caption for the figure containing a div.

:::

See @fig-2.