html_document

  <ul>
    <li>theme</li>
    <ul>
      <li>`cerulean`, `journal`, `flatly`, `darkly`, `readable`, `spacelab`, `united`, `cosmo`, `lumen`, `paper`, `sandstone`, `simplex`and `yeti`</li>
    </ul>
    <li>highlight</li>
    <li>functions</li>
    <li>highlight : syntax highlighting</li>
  </ul>
There are multiple themes and highlights we can use for html_document.

[theme ]: cerulean, journal, flatly, darkly, readable, spacelab, united, cosmo, lumen, paper, sandstone, simplexand yeti
[highlight ]: espresso, tango, pygments, kate, monochrome, zenburn, haddock and textmate
[functions ]
  • toc: true
  • number_sections: true
  • toc_depth: 4
  • toc_float: true
    • collapsed: false
    • smooth_scroll: false
  • css: styles.css
  • code_folding:hide
  • mathjax: local
title: "various themes""
author: "dahee kim"
date: "2020-02-21"
output:
  rmarkdown::html_document:
    theme: lumen
    highlight: github

prettydoc

html_pretty in the prettydoc package is a new output format for creating HTML document from R Markdown files.

html_pretty currently supports five page themes (cayman, tactile,leonids,hpstr and architect), and two syntax highlight styles (github and vignette).

output:
  prettydoc::html_pretty:
    theme: architect
    highlight: github

rmdformats

[format ] : (material, readthedown, html_clean or html_docco)
[options ]
    • fig_width : figures width, in inches
    • fig_height : figures height, in inches
    • fig_caption : toggle figure caption rendering
    • highlight : syntax highlighting
    • thumbnails : if TRUE, display content images as thumbnails
    • lightbox : if TRUE, add lightbox effect to content images
    • gallery : if TRUE, add navigation between images when displayed in lightbox
    • use_bookdown : if TRUE, will use bookdown instead of rmarkdown for HTML rendering
title: "rmarkdown themes"
author: "Dahee Kim"
output: rmdformats::material