Search code examples
pythonrmarkdownquarto

In quarto, is it possible to cross reference a figure in another document?


I am writing an article in one quarto .qmd document and would like to refer to a figure that is in an annex in another .qmd document.

Reproducible example:

  • article.qmd
See Figure @fig-a in the annex for details.
  • annex.qmd
![Caption for the figure](path/to/figure.png){#fig-a}

Related links:


Solution

  • For crossreferecing we have to combine the two documents, i.e. add {{< include _annex.qmd >}} in article.qmd. See here for more information on include.