robobook | R Documentation |
Format for converting from R Markdown to an HTML document.
robobook( fig_width = 8, fig_height = 5, fig_caption = TRUE, highlight = "kate", lightbox = FALSE, thumbnails = FALSE, gallery = FALSE, toc_depth = 2, embed_fonts = TRUE, use_bookdown = FALSE, pandoc_args = NULL, md_extensions = NULL, mathjax = "rmdformats", ... )
fig_width |
Default width (in inches) for figures |
fig_height |
Default width (in inches) for figures |
fig_caption |
|
highlight |
Syntax highlighting style. Supported styles include
"default", "tango", "pygments", "kate", "monochrome", "espresso",
"zenburn", "haddock", and "textmate". Pass |
lightbox |
if TRUE, add lightbox effect to content images |
thumbnails |
if TRUE display content images as thumbnails |
gallery |
if TRUE and lightbox is TRUE, add a gallery navigation between images in lightbox display |
toc_depth |
adjust table of contents depth |
embed_fonts |
if TRUE, use local files for fonts used in the template. This leads to bigger files but ensures that these fonts are available. If FALSE they are downloaded from Google Web Fonts. |
use_bookdown |
if TRUE, uses |
pandoc_args |
arguments passed to the pandoc_args argument of rmarkdown |
md_extensions |
arguments passed to the md_extensions argument of rmarkdown |
mathjax |
set to NULL to disable Mathjax insertion |
... |
Additional function arguments passed to R Markdown |
CSS adapted from the bookdown project, with Roboto family fonts.
R Markdown output format to pass to render
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.