0

What I want:

I'd like to have German quotation marks in my TeX-PDF via rmarkdown and tinytex on MacOS (Catalina). See for example:

enter image description here

The problem:

It used to work following the guidelines as proposed here. But now, it stopped working. I only get English quotation marks, but not German ones:

enter image description here

What I tried, without success:

  • I updated my R packages
  • I updated TeX packages
  • I checked that the TeX package "csquotes" is installed
  • I changed the language from "de" to "de-De"

R-Code:

---
title: "German quotation marks"
output: pdf_document
---

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

Sebastian Sauer
  • 1,555
  • 15
  • 24

1 Answers1

3

The R Markdown package used to provide its own template, which used csquotes.sty. Nowadays the default pandoc template is used, which does not seem to use csquotes. You can call for it manually, though:

---
title: "German quotation marks"
output: 
    pdf_document:
        keep_tex: yes
lang: de-DE
header-includes:
    - \usepackage{csquotes}
---

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

Result:

enter image description here

Ralf Stubner
  • 26,263
  • 3
  • 40
  • 75
  • 1
    Hi, Thanks for the suggestion. The way that you presented is the right way. However, I forget to put to the code that I did use csquotes. Even with csquotes, it does not work (or rather, stopped working some time ago for reasons unclear to me). For clarity, I will accept and close this issue and open a new one where I include csquotes. – Sebastian Sauer Jan 09 '20 at 06:50
  • 2
    According to https://pandoc.org/MANUAL.html#creating-a-pdf, you need to add also `csquotes: true` to the frontmatter. – rriemann Apr 02 '20 at 16:19