| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/includes.R |
| 3 |
\name{includes} |
| 4 |
\alias{includes} |
| 5 |
\alias{includes_to_pandoc_args} |
| 6 |
\title{Include content within output} |
| 7 |
\usage{ |
| 8 |
includes(in_header = NULL, before_body = NULL, after_body = NULL) |
| 9 |
|
| 10 |
includes_to_pandoc_args(includes, filter = identity) |
| 11 |
} |
| 12 |
\arguments{ |
| 13 |
\item{in_header}{One or more files with content to be included in the |
| 14 |
header of the document.} |
| 15 |
|
| 16 |
\item{before_body}{One or more files with content to be included before |
| 17 |
the document body.} |
| 18 |
|
| 19 |
\item{after_body}{One or more files with content to be included after the |
| 20 |
document body.} |
| 21 |
|
| 22 |
\item{includes}{Includes to convert to pandoc args.} |
| 23 |
|
| 24 |
\item{filter}{Filter to pre-process includes with.} |
| 25 |
} |
| 26 |
\value{ |
| 27 |
Includes list or pandoc args |
| 28 |
} |
| 29 |
\description{ |
| 30 |
Specify additional content to be included within an output document. |
| 31 |
} |
| 32 |
\details{ |
| 33 |
Non-absolute paths for resources referenced from the |
| 34 |
\code{in_header}, \code{before_body}, and \code{after_body} |
| 35 |
parameters are resolved relative to the directory of the input document. |
| 36 |
} |
| 37 |
\examples{ |
| 38 |
\dontrun{ |
| 39 |
library(rmarkdown) |
| 40 |
|
| 41 |
html_document(includes = includes(before_body = "header.htm")) |
| 42 |
|
| 43 |
pdf_document(includes = includes(after_body = "footer.tex")) |
| 44 |
} |
| 45 |
} |