我正在使用RMarkdown基于使用RStudio的投影仪模板获取PDF演示文稿。我想获得一个目录(TOC)幻灯片;但是,我的TOC幻灯片是空的。
我需要做什么才能获得显示我的TOC的幻灯片?
我使用了这段代码:
---
title: "test"
output:
beamer_presentation:
toc: true
---
## Topic A
kdsfj
## Topic B
sdjfkl
SessionInfo:
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: macOS Sierra 10.12.2
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] backports_1.0.4 magrittr_1.5 rprojroot_1.1 htmltools_0.3.5 tools_3.3.2
[6] yaml_2.1.14 Rcpp_0.12.8 stringi_1.1.2 rmarkdown_1.3 knitr_1.15.1
[11] stringr_1.1.0 digest_0.6.11 evaluate_0.10