This template is a designed for pdf output and acts
as an alternative to the tufte::tufte_handout()
template. Whereas that Rmarkdown template is based on
the tufte-latex
LaTeX package, owever, komatufte is instead
based on a custom template that I have designed using
the KOMA-script scrartcl class. Most of the added functionality
is documented in the komatufte vignette
(vignette("komatufte", "komadown")
) and is accessed via the YAML metadata
block of the R Markdown file.
komatufte(..., number_sections = TRUE, md_extensions = c("-autolink_bare_uris"), csl = NULL, colorlinks = TRUE)
... | arguments passed down to |
---|---|
number_sections | Whether to number section headers: if |
md_extensions | Arguments to be passed to a
specific output format function. For a function |
csl | bibliography style in the |
colorlinks | should cross-references and links be colored? |
R Markdown output format to pass to rmarkdown::render()
The main features of this template is the use of a left-aligned column for the main content and a right-aligned column for marginal content.
This template is more opinionated than scrartcl and is not catered to manual tinkering with the style.
library(rmarkdown) library(bookdown) rmarkdown::draft("my-article.Rmd", template = "komatufte", package = "komadown", edit = FALSE)#> Error in rmarkdown::draft("my-article.Rmd", template = "komatufte", package = "komadown", edit = FALSE): The template 'komatufte' was not found in the komadown package