\tableofcontents

Section 1 : Usage Tips

Subsection 1.1 : About this Template

About this Template

Configuration options

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

Subsection 1.2: Lists

About Lists

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

\vskip1cm

::: ::::::

Custom list spacing

More About (Markdown) Lists

  1. Usual Markdown allows enumerated lists,
  2. like this one.
  3. All you need to do, is to start the line with 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 :) )

Incremental Lists

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 command

My personal favourite is to place the \pause from latex exactly where it fits best, possibly between the third and fourth item of a list.

Subsection 1.3: Columns

Multicolumn Slides

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)

:::

::::::

Section 1.4: Usage of the hash sign #

Hierachy with the hash sign #

This is a box

with some text

Section 2: Further Reading / References

Markdown

R- Markdown

The 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

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.



imbeimainz/IMBEImisc documentation built on Nov. 14, 2024, 1:22 p.m.