[英]rmarkdown Table of Contents not being populated
我有一個簡單的測試.Rmd腳本,正在使用rmarkdown
render
功能生成PDF文件。
當我將toc
設置為true
,第二個PDF頁面是白頁,我希望看到其中有“帶有項目符號的幻燈片”和“帶有R代碼和輸出的幻燈片”。
有誰知道如何設置幻燈片標題的格式,使其出現在目錄中?
---
title: "test"
author: "test"
date: '2015-10-29'
output: beamer_presentation
toc: true
---
## Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
## Slide with R Code and Output
```{r}
summary(cars)
```
根據文檔,toc僅適用於1級標題。 因此,下面的代碼將為標題幻燈片創建目錄。 我無法使其與包含內容的幻燈片一起使用。 也許這就是目錄設計的工作方式???
---
title: "Untitled"
output:
beamer_presentation:
toc: yes
---
# A Title Slide:
## Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
## Slide with R Code and Output
```{r}
summary(cars)
```
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.