Learn R Programming

pagedown (version 0.1)

html_paged: Create a paged HTML document suitable for printing

Description

This is an output format based on bookdown::html_document2 (which means you can use those Markdown features added by bookdown). The HTML output document is split into multiple pages via a JavaScript library paged.js. These pages contain elements commonly seen in PDF documents, such as page numbers and running headers.

Usage

html_paged(..., css = c("default-fonts", "default-page", "default"), theme = NULL, 
    template = pkg_resource("html", "paged.html"))

Arguments

...

Arguments passed to bookdown::html_document2.

css

A character vector of CSS file paths. If a path does not contain the .css extension, it is assumed to be a built-in CSS file. For example, default-fonts means the file pagedown:::pkg_resource('css', 'default-fonts.css'). To see all built-in CSS files, run pagedown:::list_css().

theme

The Bootstrap theme. By default, Bootstrap is not used.

template

The path to the Pandoc template to convert Markdown to HTML.

Value

An R Markdown output format.

References

https://pagedown.rbind.io