R 从正文和目录中删除节号
在Rmarkdown output=PDF中,如果我将{-}添加到节中,它将删除该数字,但它仍然显示在TOC中。如果我不想在TOC中显示,该怎么办R 从正文和目录中删除节号,r,markdown,r-markdown,R,Markdown,R Markdown,在Rmarkdown output=PDF中,如果我将{-}添加到节中,它将删除该数字,但它仍然显示在TOC中。如果我不想在TOC中显示,该怎么办 谢谢你我不确定你到底在问什么,但希望其中一个能起作用 --- title: "Test" author: "Test" date: "Today" output: pdf_document: toc: true number_sections: true --- # First Number and title appear
谢谢你我不确定你到底在问什么,但希望其中一个能起作用
---
title: "Test"
author: "Test"
date: "Today"
output:
pdf_document:
toc: true
number_sections: true
---
# First
Number and title appear in TOC.
# Second {-}
Title appears in TOC.
\section*{Third}
Nothing appears in TOC.
为了澄清,您不希望该部分出现在TOC中,还是希望该部分出现在TOC中但没有编号?