0

我见过能够根据您在 R 降价文档上的标题创建索引的人,就像这张图片一样

在此处输入图像描述

如果有人可以让我知道我将如何修改此代码以创建左索引表?

---
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
4

1 回答 1

1

正如@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
---
于 2018-10-19T16:43:48.020 回答