有没有办法在 R Markdown 中交叉引用表格?请注意,我指的不是
kable
类型的表格,而是基础表格,您可以直接从可视面板插入的表格。
YAML
---
title: Cross-referencing figures, tables, and equations
author: Generated by bookdown
output:
bookdown::html_document2: default
bookdown::pdf_document2: default
---
Body
参见图@ref(fig:cars-plot)。
par(mar = c(4, 4, .2, .1))
plot(cars) # a scatterplot
https://bookdown.org/yihui/rmarkdown-cookbook/cross-ref.html#cross-ref
| Col1 | Col2 | Col3 |
|------|------|------|
| A | B | C |
| E | F | G |
| A | G | G |
: My Caption {#tbl-letters}
See @tbl-letters.
https://quarto.org/docs/authoring/cross-references.html#tables