幻灯片及其内容之间的交叉引用

问题描述

在带有 ioslides 的 R markdown 演示文稿中,是否可以在幻灯片之间创建交叉引用? 这对于创建手动目录或在演示结束时快速跳转到附录中的内容非常有帮助。

MWE:

---
title: "Cross references between slides"
output:
  ioslides_presentation: default
---

```{r setup,include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```

## Bullets with references

- Bullet 1: \ref{tab:my-table}
- Bullet 2: \ref{fig:my-plot}
- Bullet 3: \ref{appendix}

## Bullets with references (bookdown)

- Bullet 1: \@ref(tab:my-table)
- Bullet 2: \@ref(fig:my-plot)
- Bullet 3: \@ref(appendix)

## table

```{r my-table,cars,echo = TRUE}
library(kableExtra)
kable(summary(cars))
```

## plot

```{r my-plot,pressure}
plot(pressure)
```

## appendix

my appendix

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)