vmodern.Rd
Format for converting from R Markdown to an HTML document
using the vmodern design theme. The vmodern theme is largely based upon the
material design theme from the rmdformats
R package. See
https://github.com/juba/rmdformats for the source code.
vmodern(
fig_width = 10,
fig_height = 8,
number_sections = FALSE,
code_folding = "hide",
code_download = TRUE,
use_bookdown = TRUE,
includes = NULL,
fig_caption = TRUE,
highlight = "kate",
lightbox = TRUE,
thumbnails = FALSE,
gallery = FALSE,
cards = TRUE,
pandoc_args = NULL,
md_extensions = NULL,
mathjax = "rmdformats",
...
)
Default width (in inches) for figures
Default width (in inches) for figures
TRUE
to number section headings
Enable document readers to toggle the display of R code
chunks. Specify "none"
to display all code chunks. Specify
"hide"
or "show"
to hide or show all R code chunks by
default, and let readers toggle the states on browsers. See the
Code folding
Embed the Rmd source code within the document and provide a link that can be used by readers to download the code.
if TRUE, uses html_document2
instead of html_document
, thus providing numbered sections and cross references
Named list of additional content to include within the
document (typically created using the includes
function).
TRUE
to render figures with captions
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso",
"zenburn", "haddock", and "textmate". Pass NULL
to prevent syntax
highlighting.
if TRUE, add lightbox effect to content images
if TRUE display content images as thumbnails
if TRUE and lightbox is TRUE, add a gallery navigation between images in lightbox display
if TRUE, sections will be presented as distinct and animated cards
arguments passed to the pandoc_args argument of rmarkdown html_document
arguments passed to the md_extensions argument of rmarkdown html_document
set to NULL to disable Mathjax insertion
Additional function arguments passed to rmdformats::material()
.
R Markdown output format to pass to render
JavaScript and CSS taken and adapted from the Material design theme for Bootstrap 3 project : https://github.com/FezVrasta/bootstrap-material-design.