| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/output_format.R |
| 3 |
\name{knitr_options_pdf} |
| 4 |
\alias{knitr_options_pdf} |
| 5 |
\title{Knitr options for a PDF output format} |
| 6 |
\usage{ |
| 7 |
knitr_options_pdf(fig_width, fig_height, fig_crop, dev = "pdf") |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{fig_width}{Default width (in inches) for figures} |
| 11 |
|
| 12 |
\item{fig_height}{Default height (in inches) for figures} |
| 13 |
|
| 14 |
\item{fig_crop}{Whether to crop PDF figures with the command |
| 15 |
\command{pdfcrop}. This requires the tools \command{pdfcrop} and |
| 16 |
\command{ghostscript} to be installed. By default, \code{fig_crop = TRUE} |
| 17 |
if these two tools are available.} |
| 18 |
|
| 19 |
\item{dev}{Graphics device to use for figure output (defaults to png)} |
| 20 |
} |
| 21 |
\value{ |
| 22 |
An list that can be passed as the \code{knitr} argument of the |
| 23 |
\code{\link{output_format}} function. |
| 24 |
} |
| 25 |
\description{ |
| 26 |
Define knitr options for an R Markdown output format |
| 27 |
that creates PDF output. |
| 28 |
} |
| 29 |
\seealso{ |
| 30 |
\link{knitr_options}, \link{output_format} |
| 31 |
} |