r-markdown: German quotation marks

橙三吉。 提交于 2019-12-10 21:47:26

问题


I coudln't find out how to use the "lang: de" option (link) properly. That is, while tables are correctly named "Tabelle", the following settings:

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

"Das ist sehr schön", sagte sie. 

Produce this output:

whereas the following is needed:


回答1:


Following Tobi we can define language and use latex package 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. 

Yields:



来源:https://stackoverflow.com/questions/48427353/r-markdown-german-quotation-marks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!