Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/352.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 从正文和目录中删除节号_R_Markdown_R Markdown - Fatal编程技术网

R 从正文和目录中删除节号

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

在Rmarkdown output=PDF中,如果我将{-}添加到节中,它将删除该数字,但它仍然显示在TOC中。如果我不想在TOC中显示,该怎么办


谢谢你

我不确定你到底在问什么,但希望其中一个能起作用

---
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中但没有编号?