Title: | Plugins for R Markdown Formats |
---|---|
Description: | Formats for R Markdown that undo modifications by 'pandoc' and 'rmarkdown' to original 'latex' templates, such as smaller margins, paragraph spacing, and compact titles. In addition, enhancements such as author blocks with affiliations and headers and footers are introduced. All of this functionality is built around plugins that modify the default 'pandoc' template without relying on custom templates. |
Authors: | Johan Larsson [aut, cre] |
Maintainer: | Johan Larsson <[email protected]> |
License: | GPL-3 |
Version: | 0.4.1 |
Built: | 2024-11-02 02:56:23 UTC |
Source: | https://github.com/jolars/rmdplugr |
Rmarkdown template for an augmented version of the basic pandoc latex template
pdf_article( ..., number_sections = TRUE, md_extensions = c("-autolink_bare_uris"), indent = TRUE, marginals = TRUE, author_block = TRUE, noindentafter = TRUE, subfigs = TRUE, template = NULL, csl = NULL, colorlinks = TRUE )
pdf_article( ..., number_sections = TRUE, md_extensions = c("-autolink_bare_uris"), indent = TRUE, marginals = TRUE, author_block = TRUE, noindentafter = TRUE, subfigs = TRUE, template = NULL, csl = NULL, colorlinks = TRUE )
... |
arguments passed down to [bookdown::pdf_document2()] |
number_sections |
whether sections should be numbered |
md_extensions |
which markdown extensions to add |
indent |
whether to use paragraph indentation or not. In the latter case paragraphs are separated by vertical space as in the default rmarkdown template. |
marginals |
whether to augment latex template with marginals (header and footer) code |
author_block |
whether to augment latex template with author blocks. The latex package authblk is required. |
noindentafter |
whether to augment latex template with the noindentafter latex package to suppress indentation after certain environments. Always set to 'FALSE' is 'indent = FALSE'. |
subfigs |
whether to use the subfig package for subfig support |
template |
template for latex output. If 'NULL', the default latex template will be used (obtained from calling 'pandoc -D latex'). |
csl |
bibliography style in the '.csl' format |
colorlinks |
should cross-references and links be colored? |
R Markdown output format to pass to [rmarkdown::render()]
library(rmarkdown) library(bookdown) tmp <- file.path(tempdir(), "my-article.Rmd") rmarkdown::draft(tmp, template = "pdf_article", package = "rmdplugr", edit = FALSE) unlink(tmp)
library(rmarkdown) library(bookdown) tmp <- file.path(tempdir(), "my-article.Rmd") rmarkdown::draft(tmp, template = "pdf_article", package = "rmdplugr", edit = FALSE) unlink(tmp)
PDF presentation template
pdf_presentation( ..., template = NULL, frame_numbering = TRUE, beamer_customization = TRUE, more_fontthemes = TRUE, subfigs = TRUE )
pdf_presentation( ..., template = NULL, frame_numbering = TRUE, beamer_customization = TRUE, more_fontthemes = TRUE, subfigs = TRUE )
... |
arguments passed on to [rmarkdown::beamer_presentation()] |
template |
what template to use. If 'NULL', the default latex template will be used. |
frame_numbering |
whether to add frame numbers to latex template |
beamer_customization |
whether to add a block that allows use of '\setbeamertemplate{}[]', '\setbeamerfont{}[]' through metadata blocks with analogous names and with items 'item' and 'value' for setting various options. |
more_fontthemes |
whether to add a block that allows multiple fontthemes |
subfigs |
whether to use the subfig package for subfig support |
R Markdown output format to pass to [rmarkdown::render()]