使用R Markdown在PDF中的第一行段落缩进
我希望这是一个简单答案的问题.我正在使用Rmarkdown/knitr编写PDF文档(在RStudio中).许多LaTeX类(如文章)会自动缩进一段文本的第一行,但Rmarkdown不会,也无法找出一种方法.
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 the first line of a paragraph of text, but Rmarkdown does not, nor can I figure out a way to do so.
这是一个简单的例子:
---
title: "minimal"
author: "prison rodeo"
output: pdf_document
---
This is an R Markdown document.
I would like this paragraph to be first-line indented, but it is not.
使用>使整个段落缩进,这不是我想要的.我已经在每个段落的开头尝试了空格/制表符,并使用\ indent;似乎都不起作用.有什么想法吗?
Using > indents the entire paragraph, which is not what I'm looking for. I've tried spaces/tabs at the beginning of each paragraph, and using \indent; neither seems to work. Any ideas?
默认的Pandoc模板包含一个indent
参数.如果设置为true
,则段落以缩进开头.
The default Pandoc template includes an indent
argument. If set to true
, paragraphs start with an indentation.
----
title: "Title"
author: "Me"
output: pdf_document
indent: true
----