First-line paragraph indenting in PDFs using R Markdown

后端 未结 3 1240
深忆病人
深忆病人 2021-01-02 08:49

I\'m hoping this is a question with a simple answer. I am using Rmarkdown/knitr to author a PDF document (in RStudio). Many LaTeX classes (like article) automatically indent

3条回答
  •  抹茶落季
    2021-01-02 08:58

    I believe the following in your YAML header will work the same and has the advantage of still compiling should you decide to knit your document to an HTML file (though, I haven't tested this).

    ----
    title: "Title"
    author: "Me"
    header-includes:
       - \setlength\parindent{24pt}
    output:
        pdf_document
    ----
    

提交回复
热议问题