Package 'binb'

Title: 'binb' is not 'Beamer'
Description: A collection of 'LaTeX' styles using 'Beamer' customization for pdf-based presentation slides in 'RMarkdown'. At present it contains 'RMarkdown' adaptations of the LaTeX themes 'Metropolis' (formerly 'mtheme') theme by Matthias Vogelgesang and others (now included in 'TeXLive'), the 'IQSS' them by Ista Zahn (which is included here), and the 'Monash' theme by Rob J Hyndman. Additional (free) fonts may be needed: 'Metropolis' prefers 'Fira', and 'IQSS' requires 'Libertinus'.
Authors: Dirk Eddelbuettel [aut, cre]
Maintainer: Dirk Eddelbuettel <[email protected]>
License: GPL (>= 2)
Version: 0.0.7.1
Built: 2024-10-31 04:50:08 UTC
Source: https://github.com/eddelbuettel/binb

Help Index


Binb is not Beamer - PDF Presentation Themes

Description

Templates for RMarkdown-based Beamer PDF presentations supporting the ‘Metropolis’ style by Matthias Vogelgesang and others, the ‘IQSS’ style by Ista Zahn and Gary King, and the ‘Monash’ style by Rob J Hyndman.

Usage

metropolis(toc = FALSE, slide_level = 2, incremental = FALSE,
  fig_width = 10, fig_height = 7, fig_crop = TRUE, fig_caption = TRUE,
  dev = "pdf", df_print = "default", fonttheme = "default",
  highlight = "tango", keep_tex = FALSE, latex_engine = "xelatex",
  citation_package = c("default", "natbib", "biblatex"), includes = NULL,
  md_extensions = NULL, pandoc_args = NULL)

iqss(toc = FALSE, slide_level = 3, incremental = FALSE, fig_width = 10,
  fig_height = 7, fig_crop = TRUE, fig_caption = TRUE, dev = "pdf",
  df_print = "default", fonttheme = "default", highlight = "haddock",
  keep_tex = FALSE, latex_engine = "xelatex",
  citation_package = c("default", "natbib", "biblatex"), includes = NULL,
  md_extensions = NULL, pandoc_args = NULL)

monash(toc = FALSE, slide_level = 2, incremental = FALSE, fig_width = 8,
  fig_height = 5, fig_crop = TRUE, fig_caption = TRUE, dev = "pdf",
  df_print = "default", fonttheme = "default", colortheme = "monashwhite",
  highlight = "tango", keep_tex = FALSE, latex_engine = "pdflatex",
  citation_package = c("default", "natbib", "biblatex"), includes = NULL,
  md_extensions = NULL, pandoc_args = NULL)

presento(toc = FALSE, slide_level = 2, incremental = FALSE,
  fig_width = 10, fig_height = 7, fig_crop = TRUE, fig_caption = TRUE,
  dev = "pdf", df_print = "default", fonttheme = "default",
  highlight = "haddock", keep_tex = FALSE, latex_engine = "xelatex",
  citation_package = c("default", "natbib", "biblatex"), includes = NULL,
  md_extensions = NULL, pandoc_args = NULL)

Arguments

toc

A logical variable defaulting to FALSE.

slide_level

A numeric variable defaulting to two for ‘Metropolis’ and ‘Monash’, and three for ‘IQSS’.

incremental

A logical variable defaulting to FALSE.

fig_width

A numeric variable defaulting to ten.

fig_height

A numeric variable defaulting to seven.

fig_crop

A logical variable defaulting to TRUE.

fig_caption

A logical variable defaulting to TRUE.

dev

A character variable defaulting to “pdf”.

df_print

A character variable defaulting to “default”.

fonttheme

A character variable defaulting to “default”.

highlight

A character variable defaulting to “tango”.

keep_tex

A logical variable defaulting to FALSE.

latex_engine

A character variable defaulting to “xelatex”.

citation_package

An optional character variable with possible value “default”, “natbib” (the default), or “biblatex”.

includes

An optional character variable defaulting to NULL.

md_extensions

An optional character variable defaulting to NULL.

pandoc_args

An optional character variable defaulting to NULL.

colortheme

For the ‘Monash’ theme only. A character variable defaulting to “monashwhite”.

Details

Note that not all options and customizations available at the LaTeX level are implemented or supported yet. A number of styling options could be exposed by setting YAML meta-data in the header for either style. This needs more testing and documentation.

Value

RMarkdown content processed is returned for use by the render function but the function is invoked for it side effect of creating the pdf file.

IQSS Details

We currently set slide_level to three to use the same appearance as the LaTeX demo. This means section and sub-section headers use one and two hash marks, new slides use three, and “box” environments start with four. More commonly, Beamer theme use two and work without subsections.

Author(s)

Dirk Eddelbuettel

See Also

Three other packages also offer RMarkdown interfaces to LaTeX (or HTML) content: tint for Tufte-style pdf and html, pinp for two-column pdf vignettes, and linl for LaTeX letters.

Examples

## Not run: 
library(rmarkdown)
draft("myslides.Rmd", template="metropolis", package="binb", edit=FALSE)
setwd("myslides")       ## template creates a new subdir
render("myslides.Rmd")

## End(Not run)