RMarkdown:如何在R Markdown中更改目录标题? [英] RMarkdown: How to change headline in table of contents in R Markdown?

查看:447
本文介绍了RMarkdown:如何在R Markdown中更改目录标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用toc: yes命令时,文档包含"Content"作为目录的标题.由于我想用德语编写此文档,因此我还想将目录的标题更改为等效的德语单词.有关如何更改此设置的任何建议?

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 in german, I also want to change the headline of the table of contents to the equivalent german word. Any suggestions on how to change this?

推荐答案

有了包含LaTeX-Package babel的YAML标头,它对我有用:

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
---

这篇关于RMarkdown:如何在R Markdown中更改目录标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆