我见过有人能够根据您在 R markdown 文档中的标题创建索引,如这张图片
如果有人可以让我知道我将如何修改此代码以创建左索引表?
---
title: "Untitled"
author: "Juan Lozano"
date: "October 19, 2018"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## Title 1
Text Text Text Text Text
```{r cars}
summary(cars)
```
## Title 2
Text Text Text Text Text
正如@hrbrmstr 的链接表明有许多 YAML 自定义可能:这是我通常使用的那种东西:
---
title: "Untitled"
author: "john Smith"
date: "today ;)"
output:
html_notebook:
fig_caption: yes
number_sections: yes
toc: yes
toc_float: yes
html_document:
fig_caption: yes
number_sections: yes
toc: yes
toc_float: yes
df_print: paged
bibliography: /path/to/library.bib
---
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句