如何制作没有章节编号的rmarkdown文档的一部分?

How to make part of rmarkdown document without section numbering?

我有一个 rmarkdown 文档 (.Rmd),我想将其编入 pdf 文档。 number_sections 已放入 'yes',目录已放入 'true'。如何添加出现在 table 目录中但没有章节编号的附录部分?

这是一个示例 .Rmd 代码。怎样才能让附录A和附录B成为无数段,同时出现在table的目录中呢?

---
title: "Test"
author: "test test"
geometry: margin=1in
output:
  pdf_document:
    keep_tex: yes
    latex_engine: xelatex
    number_sections: yes
    toc: yes
    toc_depth: 3
header-includes:
- \usepackage[dutch]{babel}
- \usepackage{fancyhdr}
- \pagestyle{fancy}
- \fancyfoot[LE,RO]{this is a fancy foot}
- \usepackage{dcolumn}
- \usepackage{here}
- \usepackage{longtable}
- \usepackage{caption}
- \captionsetup{skip=2pt,labelsep=space,justification=justified,singlelinecheck=off}
subtitle: test test test
fontsize: 12pt
---
# start

# second

```{r results="asis",eval=TRUE,echo=FALSE,message=FALSE, error=FALSE, warning=FALSE, comment = NA,fig.height=4}
cat("and here some R")
```

# appendix A

# appandix B

只需在栏目名称后添加{-}。因此,对于你的附录,你应该做这样的事情:

# appendix A {-}

# appendix B {-}

有关详细信息,请参阅文档的 this section


结果: