blob: f4395ae9d484748ba8d4269a9217b883322d3988 [file] [log] [blame]
brentthorne275dbbe2019-02-05 13:31:30 -05001#' Posterdown HTML format (using bookdown::html_document2)
brentthorne275dbbe2019-02-05 13:31:30 -05002#' @inheritParams pagedown::poster_relaxed
3#' @param ... Additional arguments to \code{rmarkdown::html_document}
4#'
5#' @return R Markdown output format to pass to
6#' \code{\link[rmarkdown:render]{render}}
7#'
8#' @examples
9#'
10#' \dontrun{
11#' library(rmarkdown)
12#' draft("MyArticle.Rmd", template = "posterdown_html", package = "posterdown")
13#' }
14#' @export
15posterdown_html <- function(...,
16 template = find_resource("posterdown_html", "template.html"),
17 css = NULL) {
18 pagedown::poster_relaxed(..., css = css, template = template)
19}
brentthorne75828bf2019-04-07 23:37:15 -040020#' @description The output format \code{poster_betterland()} mimics the style of the
21#' \dQuote{BetterPoster} movement from twitter.
22#' @rdname posterdown_html
23#' @export
24posterdown_betterland <- function(...,
25 template = find_resource("posterdown_betterland", "template.html"),
26 css = NULL) {
27 pagedown::poster_relaxed(..., css = css, template = template)
28}
brentthorneedd17762019-04-09 12:35:49 -040029#' @description The output format \code{poster_betterport()} mimics the style of the
30#' \dQuote{BetterPoster} movement from twitter.
31#' @rdname posterdown_html
32#' @export
33posterdown_betterport <- function(...,
34 template = find_resource("posterdown_betterport", "template.html"),
35 css = NULL) {
36 pagedown::poster_relaxed(..., css = css, template = template)
37}