Description Usage Arguments Value
Creates a PDF
base output format for HTML/CSS
to PDF
output formats.
1 2 3 4 5 6 7 8 | wpdf_document_base(toc = FALSE, toc_depth = 3, fig_width = 5,
fig_height = 4, fig_retina = 8, fig_caption = TRUE, dev = "png",
dpi = 96, df_print = NULL, notes = c("endnotes", "footnotes"),
attach_code = FALSE, smart = TRUE, highlight = "default",
math_engine = "webtex_svg", template = NULL,
wpdf_engine = c("weasyprint", "prince"), css = NULL, includes = NULL,
keep_md = FALSE, keep_html = FALSE, self_contained = TRUE,
verbose = FALSE, md_extensions = NULL, pandoc_args = NULL)
|
toc |
|
toc_depth |
Depth of headers to include in table of contents |
fig_width |
Default width (in inches) for figures |
fig_height |
Default width (in inches) for figures |
fig_retina |
Setting this option to a ratio (for example, 2) will
change the |
fig_caption |
|
dev |
Graphics device to use for figure output (defaults to png) |
dpi |
The DPI (dots per inch) for bitmap devices. |
df_print |
Method to be used for printing data frames. Valid values
include |
notes |
Render notes as endnotes or footnotes. Footnotes are not yet supported by WeasyPrint and are only well rendered with Prince. |
attach_code |
Add the |
smart |
Produce typographically correct output, converting straight quotes to curly quotes, — to em-dashes, – to en-dashes, and ... to ellipses. |
highlight |
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn",
"haddock", and "textmate". Pass |
math_engine |
Method to be used to render |
template |
|
wpdf_engine |
|
css |
One or more css files to include |
includes |
Named list of additional content to include within the
document (typically created using the |
keep_md |
Keep the markdown file generated by knitting. |
keep_html, self_contained |
Keep intermediate |
verbose |
Is |
md_extensions |
Markdown extensions to be added or removed from the
default definition or R Markdown. See the |
pandoc_args |
Additional command line options to pass to pandoc |
R Markdown
output format to pass to rmarkdown::render()
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.