【发布时间】:2020-05-07 15:51:31
【问题描述】:
我正在使用 knitr + Rmarkdown 创建 PDF 文档。我在 yaml 标头中设置了geometry: margin=0.1in。此页边距适用于文档的正文,但标题与正文以及正文的顶部相距甚远。截图如下:
这是在屏幕截图中创建文档的 Rmd 代码:
---
title: "test"
output:
pdf_document:
latex_engine: xelatex
geometry: margin=0.1in
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
a bunch of text to demonstrate that the margin applies only to the body text of
this document, while the title (above) remains quite far from the top of the
document, and this is messing up my plan to make a document that's only one page
in length
我需要这个文件是一页的长度。标题的巨大利润搞砸了。 如何减少标题、文档顶部和正文之间的空白?
注意:由于某种原因,我这里只能使用 xelatex 乳胶引擎。
【问题讨论】:
标签: r latex r-markdown knitr