\tableofcontents
R-markdown beamer presentations. It gives an overview
on how to use this template, but it assumes you are familiar with R-markdown in gerenal. Configuration options in he YAML header
The YAML header is the part of this R-markdown file at the very top, between the
---.
There you can configure
header-includes, you can include latex code in the
latex header of the document. This is most helpful for latex packages or custom makros.- \AtBeginSection [...] ) that adds
tables of content of each section. If you don't like them, just comment it out. Lists can be done with either markdown or with \textbf{\LaTeX}
\vskip12pt
:::::: {.columns} ::: {.column} with \LaTeX \begin{itemize} \item this is \item a \textbf{list} \item with standard spacing between items \end{itemize}
\vskip1cm
\begin{itemize} \tightlist \item this is a \emph{tight} list \item which we get \item by adding the \texttt{\tightlist} command \end{itemize} :::
::: {.column}
R-markdown
You get the markdown equivalent
by simply leaving an empty line
between each list item in the .rmd-file.
\vskip1cm
::: ::::::
r-markdown lists are thight lists. tightlistSeparation.pt, the default is 0pt. If you change it to e.g. your font size, you get lists with double spacing. 1., ...A) R-Markdown also enables you to use lettered (alphabetical) lists,
B) for this you have to start the line with A).
C) It also works with small letters (trust me :) )
Again, there's a latex way and a markdown way to do this. \begin{itemize}[<+->] \item With \LaTeX lists, \item you just need to add the \texttt{[<+->]} option to the itemize environment \end{itemize}
- with markdown lists, each list needs to start with
> *- or
> 1./>a)to get an ordered/alphabetical incemental list
\pause
\pause commandMy personal favourite is to place the \pause from latex exactly where it fits best,
possibly between the third and fourth item of a list.
Again, there is a \LaTeX and a markdown option to create multicolumn slides. I usually prefer markdown, because it is easier to include r-code (or anything that is not latex code) in those columns.
:::::: {.columns}
::: {.column width="40%"} This is just a list * even with subitems :) Look! * on the right side is a plot!
\vskip12pt And please note that the width of the columns is adjustable by using width="XY%" :::
::: {.column width="59%"} \vskip-1cm
plot(-1:1,-1:1,type="n") text(0,0, "Hi, I'm a R-plot on a multicolumn slide,", cex=2) text(0,-.2,"the `::::::` are needed to make that happen. ", cex=2)
:::
::::::
### : start of a new sections## : start of a new subsections### : start of a new frame (i.e. slide)####: Infoboxes, like below: with some text
R- MarkdownThe go-to resource for R-markdown, which is a extended version of base markdown, is considered to be https://bookdown.org/yihui/rmarkdown/.
But:
\vskip-10pt
[^1]: when an .rmd is rendered (syn. knitted),knitr converts the .rmd into an .md file which Pandoc then converts into .tex. Then .tex into .pdf with a Latex-distribution, possibly tinytex. Since Pandoc handles the .md file, all Pandoc extensions can be used in .rmd files.
Other R-Markdown sources are
PANDOC is a universal document converter that is used in every .rmd-file (and not only there). It understands an extended and slightly revised version of base Markdown syntax. Have a look at https://pandoc.org/MANUAL.html#pandocs-markdown.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.