r-markdown: German quotation marks for pdf_documents

后端 未结 1 1228
孤独总比滥情好
孤独总比滥情好 2020-12-21 01:42

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:

---
t         


        
1条回答
  •  时光取名叫无心
    2020-12-21 02:12

    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:

    0 讨论(0)
提交回复
热议问题