【问题标题】:r-markdown: German quotation marks for pdf_documentsr-markdown:pdf_documents 的德语引号
【发布时间】:2018-01-24 16:32:35
【问题描述】:

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

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

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

产生这个输出:

而以下是需要的:

【问题讨论】:

  • 输入 Alt-CTRL + V 表示“,输入 Alt-CTRL + B 表示“(在 Linux 上)

标签: r localization knitr r-markdown pandoc


【解决方案1】:

按照Tobi,我们可以定义语言并使用乳胶包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. 

产量:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-02-25
    • 1970-01-01
    • 2018-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-28
    • 1970-01-01
    相关资源
    最近更新 更多