brentthorne | d1bce7e | 2019-01-30 12:16:12 -0500 | [diff] [blame] | 1 | #' Posterdown PDF format (using Memoir LaTeX document class) |
Brent Thorne | 425961c | 2018-12-03 13:56:09 -0500 | [diff] [blame] | 2 | #' |
| 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) |
brentthorne | d1bce7e | 2019-01-30 12:16:12 -0500 | [diff] [blame] | 13 | #' draft("MyArticle.Rmd", template = "posterdown_pdf", package = "posterdown") |
Brent Thorne | 425961c | 2018-12-03 13:56:09 -0500 | [diff] [blame] | 14 | #' } |
Brent Thorne | 425961c | 2018-12-03 13:56:09 -0500 | [diff] [blame] | 15 | #' @export |
brentthorne | 275dbbe | 2019-02-05 13:31:30 -0500 | [diff] [blame^] | 16 | |
| 17 | # This is borrowed from the thesisdown package github.com/ismayc/thesisdown |
brentthorne | 16e1840 | 2019-01-05 10:48:08 -0500 | [diff] [blame] | 18 | posterdown_pdf <- function(..., keep_tex = TRUE) { |
Brent Thorne | 425961c | 2018-12-03 13:56:09 -0500 | [diff] [blame] | 19 | inherit_pdf_document(..., |
| 20 | keep_tex = keep_tex, |
brentthorne | 16e1840 | 2019-01-05 10:48:08 -0500 | [diff] [blame] | 21 | template = find_resource("posterdown_pdf", "template.tex"), |
brentthorne | 8241b94 | 2018-12-03 23:51:48 -0500 | [diff] [blame] | 22 | citation_package = "biblatex") |
Brent Thorne | 425961c | 2018-12-03 13:56:09 -0500 | [diff] [blame] | 23 | } |