【问题标题】:R Markdown index for titles标题的 R Markdown 索引
【发布时间】:2018-10-19 16:09:18
【问题描述】:

我见过有人能够根据您在 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

【问题讨论】:

标签: r markdown r-markdown


【解决方案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
---

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-01-14
    • 2016-01-13
    • 2017-10-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多