blob: 9089483d4bd027760c50266937ff1385cd184f1d [file] [log] [blame]
Luke W Johnston79329cc2019-04-24 17:14:04 +02001
brentthorne275dbbe2019-02-05 13:31:30 -05002#' Posterdown HTML format (using bookdown::html_document2)
Luke W Johnston79329cc2019-04-24 17:14:04 +02003#'
brentthorne275dbbe2019-02-05 13:31:30 -05004#' @inheritParams pagedown::poster_relaxed
Luke W Johnston79329cc2019-04-24 17:14:04 +02005#' @param ... Additional arguments to `rmarkdown::html_document`
brentthorne275dbbe2019-02-05 13:31:30 -05006#'
7#' @return R Markdown output format to pass to
Luke W Johnston79329cc2019-04-24 17:14:04 +02008#' [rmarkdown:render::render()]
brentthorne275dbbe2019-02-05 13:31:30 -05009#'
10#' @examples
11#'
12#' \dontrun{
13#' library(rmarkdown)
14#' draft("MyArticle.Rmd", template = "posterdown_html", package = "posterdown")
15#' }
16#' @export
17posterdown_html <- function(...,
18 template = find_resource("posterdown_html", "template.html"),
19 css = NULL) {
20 pagedown::poster_relaxed(..., css = css, template = template)
21}
Luke W Johnston79329cc2019-04-24 17:14:04 +020022
23#' @description The output format `poster_betterland()` mimics the style of the
brentthorne75828bf2019-04-07 23:37:15 -040024#' \dQuote{BetterPoster} movement from twitter.
25#' @rdname posterdown_html
26#' @export
27posterdown_betterland <- function(...,
28 template = find_resource("posterdown_betterland", "template.html"),
29 css = NULL) {
30 pagedown::poster_relaxed(..., css = css, template = template)
31}
Luke W Johnston79329cc2019-04-24 17:14:04 +020032
33#' @description The output format `poster_betterport()` mimics the style of the
34#' \dQuote{BetterPoster} movement from twitter.
35#' @rdname posterdown_html
36#' @export
37posterdown_betterport <- function(...,
38 template = find_resource("posterdown_betterport", "template.html"),
39 css = NULL) {
40 pagedown::poster_relaxed(..., css = css, template = template)
41}