RMarkdown: How to change headline in table of contents in R Markdown?

后端 未结 3 1009
误落风尘
误落风尘 2021-02-19 06:50

When I\'m using the toc: yes command, the document contains \"Content\" as the headline of the table of contents. Due to the fact that I want to write this document

3条回答
  •  眼角桃花
    2021-02-19 07:28

    With this YAML header that includes LaTeX-Package babel, it works for me:

    ---
    title: "TOC in German"
    header-includes:
      - \usepackage[ngerman]{babel}
    output: 
      pdf_document:
        toc: true
        number_sections: yes
    ---
    

提交回复
热议问题