小编pau*_*ulr的帖子

降价。如何减少标题栏和正文开头之间的空间

我一直在通过 Mac 上的 RStudio 成功使用 RMarkdown。

最近升级到 RStudio 1.2.5019 和 tinytex_0.18,现在我的“标题块”和“第一个正文/标题”之间的垂直间距增加了。

简单的例子,(故意排除author:date:),是:

---
output: 
  pdf_document
title: "Example of Title to Body Text"
subtitle: Subtitle Places Here
---
This is the first paragraph (or heading if specified as such). It is quite a way down from the title of the document. How can this be reduced to a "single line" vertical space?

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
Run Code Online (Sandbox Code Playgroud)

然后我尝试使用“titlesec”包,但无法确定使用哪个命令来实现所需的结果。尝试的例子是:

--- …
Run Code Online (Sandbox Code Playgroud)

latex r pandoc knitr r-markdown

3
推荐指数
1
解决办法
4813
查看次数

标签 统计

knitr ×1

latex ×1

pandoc ×1

r ×1

r-markdown ×1