library("knitr")

### Chunk options ###

## Text results
opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE, size = 'tiny')

## Code decoration
opts_chunk$set(tidy = FALSE, comment = NA, highlight = TRUE, prompt = FALSE, crop = TRUE)

# ## Cache
# opts_chunk$set(cache = TRUE, cache.path = "knitr_output/cache/")

# ## Plots
# opts_chunk$set(fig.path = "knitr_output/figures/")
opts_chunk$set(fig.align = 'center', out.width = '90%')

### Hooks ###
## Crop plot margins
knit_hooks$set(crop = hook_pdfcrop)

## Reduce font size
## use tinycode = TRUE as chunk option to reduce code font size
# see http://stackoverflow.com/a/39961605
knit_hooks$set(tinycode = function(before, options, envir) {
  if (before) return(paste0("\n \\", options$size, "\n\n"))
  else return("\n\n \\normalsize \n")
  })

New section

New slide

Fill in with content:


This slide does not have a title


(bigger)

\huge

This slide does not have a title

\normalsize

Change text size

\tiny Some text

\scriptsize Some text

\footnotesize Some text

\small Some text

\normalsize Some text

\large Some text

\huge Some text

Show items incrementally

  • First item

  • Second item

Show items incrementally (alternative)

::: incremental - First item

:::

Show items NON incrementally

::: nonincremental ::: - First item

:::

Add some vertical and horizontal space

Some text here

\vspace{10mm}

\hspace{10mm} Some more text

Add a pause within a slide

Some text

. . .

More text

This slide has some small text aligned on the right

See below

\raggedright \footnotesize Some reference here \raggedleft

Center align text

\centering This text is centered

Show some links

a link

::: hide :::

Hide this slide

Do not show it

:::

A slide with subheadings

Heading 1

Heading 2

This slide has two columns

:::::::::::::: {.columns align=center} ::: {.column width="40%"} Some text on the left

Could be an image too ::: ::: {.column width="60%" align=center} Something else on the right

whatever ::: ::::::::::::::

Include some code

data(iris)
plot(iris)

Reduce code size

data(iris)
plot(iris)


Pakillo/rmdTemplates documentation built on Sept. 16, 2022, 3:04 p.m.