knitr_options_pdf: Knitr options for a PDF output format

View source: R/output_format.R

knitr_options_pdfR Documentation

Knitr options for a PDF output format

Description

Define knitr options for an R Markdown output format that creates PDF output.

Usage

knitr_options_pdf(fig_width, fig_height, fig_crop, dev = "pdf")

Arguments

fig_width

Default width (in inches) for figures

fig_height

Default height (in inches) for figures

fig_crop

Whether to crop PDF figures with the command pdfcrop. This requires the tools pdfcrop and ghostscript to be installed. By default, fig_crop = TRUE if these two tools are available.

dev

Graphics device to use for figure output (defaults to png)

Value

An list that can be passed as the knitr argument of the output_format function.

See Also

knitr_options, output_format


rmarkdown documentation built on Nov. 4, 2024, 5:06 p.m.