Metropolis Beamer Theme for Revealjs

A theme inspired by beamer metropolis theme

Author X

Institution X

Author Y

Institution Y

May 10, 2024

Components

Components

Alert and Example Inline style

To emphasize specific words or text, you can:

  • Use the default .alert class, e.g. important note.
  • Use the default .example class e.g. For example, look at this text

Components

Custom Inline Color Attributes

  • Use inline color and bg attribute for custom color and background color,
    • [colored text]{color="#2a74f5"} produce colored text
    • [text with background color]{bg="#f5e347"} produce text with background color
    • [colored text with background]{color="#2a74f5" bg="#f5e347"} produce colored text
  • Note that, when using inline attributes, DO NOT PUT SPACE on either side of equal (=) sign, that, write like color="#2a74f5", instead of color = "#2a74f5"

Components

Blockquotes

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel rhoncus ante. Donec vitae euismod nibh. In ultrices vestibulum erat, non maximus orci elementum in. Ut eget erat et felis consequat volutpat. Donec ac iaculis justo. Phasellus vitae mi tempor leo scelerisque consequat sed at nibh.

Components

Citations

  1. Xie (2023)

  2. Allaire et al. (2023)

  3. Allaire (2023)

Callout Blocks

Custom Blocks

There are three custom blocks that you can use. Create them using .callout class in a div (:::) and specify the type.

  • For default block, use type='default'

  • For alert block, use type='alert'

  • For example block, use type='example'

Default block

::: {.callout type='default'}
## Default block

This is a default block
:::

renders to,

Default block

This is a default block

Alert Block

::: {.callout type='alert'}
## Alert Block

This is a alert block
:::

renders to,

Alert Block

This is a alert block

Example Block

::: {.callout type='example'}
## Example Block

This is a example block
:::

renders to,

Example Block

This is a example block

Tables

Table 1: Fruit prices
fruit price
apple 2.05
pear 1.37
orange 3.09

Table 1 is created using markdown.

Tables

Table 2: Carbon Dioxide Uptake in Grass Plants (Data from R)
Plant Type Treatment conc uptake
Qn1 Quebec nonchilled 95 16.0
Qn1 Quebec nonchilled 175 30.4
Qn1 Quebec nonchilled 250 34.8
Qn1 Quebec nonchilled 350 37.2
Qn1 Quebec nonchilled 500 35.3
Qn1 Quebec nonchilled 675 39.2

For details of Table 2, check by running ?CO2 in R console.

Images

Random Image from Picsum

References

Allaire, JJ. 2023. Quarto: R Interface to Quarto Markdown Publishing System. https://CRAN.R-project.org/package=quarto.
Allaire, JJ, Yihui Xie, Christophe Dervieux, Jonathan McPherson, Javier Luraschi, Kevin Ushey, Aron Atkins, et al. 2023. Rmarkdown: Dynamic Documents for r. https://CRAN.R-project.org/package=rmarkdown.
Xie, Yihui. 2023. Knitr: A General-Purpose Package for Dynamic Report Generation in r. https://yihui.org/knitr/.