hpdf_document2: Output format for producing a bookdown pdf

Description Usage Arguments Value

Description

Output format for producing a bookdown pdf

Usage

1
2
3
4
hpdf_document2(..., engine = c("weasyprint", "prince"), engine_opts = NULL,
  keep_html = FALSE, number_sections = TRUE, pandoc_args = NULL,
  notes = c("endnotes", "footnotes"),
  base_format = rmarkdown::html_document)

Arguments

...

Arguments to be passed to a specific output format function. For a function foo2(), its arguments are passed to foo(), e.g. ... of html_document2() are passed to rmarkdown::html_document().

engine

A PDF engine.

engine_opts

A character vector of command-line arguments to be passed to engine.

keep_html

Keep intermediate HTML file.

number_sections

Whether to number section headers: if TRUE, figure/table numbers will be of the form X.i, where X is the current first-level section number, and i is an incremental number (the i-th figure/table); if FALSE, figures/tables will be numbered sequentially in the document from 1, 2, ..., and you cannot cross-reference section headers in this case.

pandoc_args

Arguments to be passed to a specific output format function. For a function foo2(), its arguments are passed to foo(), e.g. ... of html_document2() are passed to rmarkdown::html_document().

notes

Render notes as endnotes or footnotes. Footnotes are not yet supported by WeasyPrint and are only well rendered with Prince.

base_format

An output format function to be used as the base format.

Value

An R Markdown output format object to be passed to rmarkdown::render().


RLesur/weasydoc documentation built on May 21, 2019, 9:19 a.m.