R Markdown 中的交叉引用表

问题描述 投票:0回答:1

有没有办法在 R Markdown 中交叉引用表格?请注意,我指的不是

kable
类型的表格,而是基础表格,您可以直接从可视面板插入的表格。

r reference r-markdown cross-reference
1个回答
0
投票

RMarkdown 使用 bookdown。

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

© www.soinside.com 2019 - 2024. All rights reserved.