blob: a0965c9bde2e8b0fa7dc90c2add6f237ee7ba5c4 [file] [log] [blame]
brentthorned1bce7e2019-01-30 12:16:12 -05001#' Posterdown PDF format (using Memoir LaTeX document class)
Brent Thorne425961c2018-12-03 13:56:09 -05002#'
3#' @inheritParams rmarkdown::pdf_document
4#' @param ... Additional arguments to \code{rmarkdown::pdf_document}
5#'
6#' @return R Markdown output format to pass to
7#' \code{\link[rmarkdown:render]{render}}
8#'
9#' @examples
10#'
11#' \dontrun{
12#' library(rmarkdown)
brentthorned1bce7e2019-01-30 12:16:12 -050013#' draft("MyArticle.Rmd", template = "posterdown_pdf", package = "posterdown")
Brent Thorne425961c2018-12-03 13:56:09 -050014#' }
Brent Thorne425961c2018-12-03 13:56:09 -050015#' @export
brentthorne275dbbe2019-02-05 13:31:30 -050016
17# This is borrowed from the thesisdown package github.com/ismayc/thesisdown
brentthorne16e18402019-01-05 10:48:08 -050018posterdown_pdf <- function(..., keep_tex = TRUE) {
Brent Thorne425961c2018-12-03 13:56:09 -050019 inherit_pdf_document(...,
20 keep_tex = keep_tex,
brentthorne16e18402019-01-05 10:48:08 -050021 template = find_resource("posterdown_pdf", "template.tex"),
brentthorne8241b942018-12-03 23:51:48 -050022 citation_package = "biblatex")
Brent Thorne425961c2018-12-03 13:56:09 -050023}