Reputation: 1337
I am using R Markdown to produce a booklet with specific height and length measures. Is there a way to specify to R Markdown to produce the article in 5.5"x8.5" measures.
I saw questions asked about producing A4 size pdf here but that does not help as my measure is very specific.
Upvotes: 5
Views: 3106
Reputation: 44808
Use the geometry option in the YAML (which becomes options to the geometry package in LaTeX). For example:
---
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>.
Upvotes: 11