How to remove a section from the table of contents?

☆樱花仙子☆ 提交于 2019-12-24 00:29:23

问题


Or in other words: is there something like \tocless for Rmd's? I found something for Latex here, but could not find anything for an Rmd.

Changing toc-depth is not an option:

output:
  html_document:
    toc: true
    toc_float:
      collapsed: false
    toc_depth: 2

Reproducible example:

---
title: "Untitled"
author: "SQC"
date: "7 Juni 2018"
output:
  html_document:
    toc: true
    toc_float:
      collapsed: false
    toc_depth: 2
    theme: yeti
---

## Sec. 1

bla

## Sec. 2 - not part of content

bla

来源:https://stackoverflow.com/questions/50740687/how-to-remove-a-section-from-the-table-of-contents

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!