How to make part of an rmarkdown document without section numbering?

I have an rmarkdown document (.Rmd) that I want to link to a PDF document. number_sections was placed in 'yes' and toc in 'true'. How to add sections of the application that appear in the table of contents, but do not have a section number?

Here is an example. Rmd. How can I supplement Appendix A and Appendix B with countless sections and allow them to appear in the table of contents at the same time?

--- 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 
+6
source share
1 answer

Just add {-} after the section name. So for your applications you should do something like:

 # appendix A {-} # appendix B {-} 

See this section in the docs for more details.


Result:

enter image description here

+10
source

All Articles