如何在 r markdown 中指定自定义纸张尺寸
How to specify a customized paper size in r markdown
我正在使用 R Markdown 制作一本具有特定高度和长度测量值的小册子。有没有办法指定 R Markdown 以 5.5"x8.5" 度量生成文章。
我看到有关生成 A4 尺寸 pdf 的问题,但这没有帮助,因为我的衡量标准非常具体。
使用 YAML 中的 geometry 选项(它成为 LaTeX 中 geometry 包的选项)。例如:
---
title: "Title"
author: "Me"
geometry: paperheight=8.5in,paperwidth=5.5in,margin=1in
output:
pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
This is an R Markdown document. Markdown is a simple formatting
syntax for authoring HTML, PDF, and MS Word documents. For more
details on using R Markdown see <http://rmarkdown.rstudio.com>.
我正在使用 R Markdown 制作一本具有特定高度和长度测量值的小册子。有没有办法指定 R Markdown 以 5.5"x8.5" 度量生成文章。
我看到有关生成 A4 尺寸 pdf 的问题
使用 YAML 中的 geometry 选项(它成为 LaTeX 中 geometry 包的选项)。例如:
---
title: "Title"
author: "Me"
geometry: paperheight=8.5in,paperwidth=5.5in,margin=1in
output:
pdf_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## R Markdown
This is an R Markdown document. Markdown is a simple formatting
syntax for authoring HTML, PDF, and MS Word documents. For more
details on using R Markdown see <http://rmarkdown.rstudio.com>.