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

后端 未结 3 940
误落风尘
误落风尘 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:20

    You can also make use of babel simply specifying in the YAML header the "lang" field. For example:

    ---
    lang: de-DE
    title: "Ausgefallener Titel"
    toc: 1
    ---
    

    I.e., you can use the "lang" field and specify your desired language-and-country code. For example, de-DE, en-US, etc. (Of course, the corresponding babel package for that language should be installed, or you'll get an error).

提交回复
热议问题