r-markdown:pdf_documents 的德语引号

Wil*_*ill 4 localization r pandoc knitr r-markdown

我不知道如何正确使用“lang: de”选项(链接)。也就是说,虽然表被正确命名为“Tabelle”,但以下设置:

---
title: "German quotation marks"
author: "will"
date: "24 Jänner 2018"
output: pdf_document
---

"Das ist sehr schön", sagte sie. 
Run Code Online (Sandbox Code Playgroud)

产生这个输出:

在此处输入图片说明

而需要以下内容:

在此处输入图片说明

jay*_*.sf 6

Tobi之后,我们可以定义语言并使用 latex 包csquotes

---
title: "German quotation marks"
author: "will"
date: "24 Jänner 2018"
output: pdf_document
lang: de
header-includes:
  - \usepackage{csquotes}
---

"Das ist sehr schön", sagte sie. 
Run Code Online (Sandbox Code Playgroud)

产量:

在此处输入图片说明