简体   繁体   English

在PDF文档中的图像周围添加填充

[英]Add padding around image in PDF document

I have a series of images back-to-back and I would like them to be further separated when I knit a PDF file than whatever the default is. 我有一系列背靠背的图像,并且我希望在编织PDF文件时将它们进一步分开,而不是使用默认值。

For example, in the following document: 例如,在以下文档中:

 ---
title: "Image Test"
output: pdf_document
---


```{r echo = FALSE, fig.height=3}
vec1 <- rnorm(100)
vec2 <- rnorm(100)

plot(vec1)

plot(vec2)
```

I would like to control the distance between the plots. 我想控制地块之间的距离。 The only thing I've found so far is to keep intermediate TeX and put in newlines manually. 到目前为止,我发现的唯一一件事是保留中间TeX并手动放入换行符。

您可以将两个图放在单独的块中,然后将LaTeX \\ newline放在两者之间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM