brentthorne | 70f8740 | 2019-02-06 17:05:11 -0500 | [diff] [blame] | 1 | #' Posterdown LaTeX format (using Memoir LaTeX document class) |
| 2 | #' |
| 3 | #' @inheritParams rmarkdown::pdf_document |
Luke W Johnston | 79329cc | 2019-04-24 17:14:04 +0200 | [diff] [blame] | 4 | #' @param ... Additional arguments to `rmarkdown::pdf_document` |
brentthorne | 70f8740 | 2019-02-06 17:05:11 -0500 | [diff] [blame] | 5 | #' |
| 6 | #' @return R Markdown output format to pass to |
brentthorne | 8ee0076 | 2019-04-24 12:57:51 -0400 | [diff] [blame^] | 7 | #' [rmarkdown::render()] |
brentthorne | 70f8740 | 2019-02-06 17:05:11 -0500 | [diff] [blame] | 8 | #' |
| 9 | #' @examples |
| 10 | #' |
| 11 | #' \dontrun{ |
| 12 | #' library(rmarkdown) |
| 13 | #' draft("MyArticle.Rmd", template = "posterdown_pdf", package = "posterdown") |
| 14 | #' } |
| 15 | #' @export |
| 16 | # This is borrowed from the thesisdown package github.com/ismayc/thesisdown |
| 17 | posterdown_latex <- function(..., keep_tex = TRUE) { |
| 18 | inherit_pdf_document(..., |
| 19 | keep_tex = keep_tex, |
| 20 | template = find_resource("posterdown_latex", "template.tex"), |
| 21 | citation_package = "biblatex") |
| 22 | } |
| 23 | |
| 24 | #' @description Legacy function for the OG's of posterdown. |
| 25 | #' This will remain untouched from here on out (Feb 6 2019). |
| 26 | #' @rdname posterdown_latex |
| 27 | #' @export |
| 28 | posterdown_pdf <- function(..., keep_tex = TRUE) { |
| 29 | inherit_pdf_document(..., |
| 30 | keep_tex = keep_tex, |
| 31 | template = find_resource("posterdown_pdf", "template.tex"), |
| 32 | citation_package = "biblatex") |
| 33 | } |