Insert a manual paragraph in an header of an R markdown beamer presentation

Viewed 108

I am doing a beamer presentation with R Markdown. I want to insert a manual paragraph in some of the headers. This is my code so far:

---
title: "An Introduction to Statistical Analysis with R"
author: Me
date: "15th of October 2019"
output: 
  beamer_presentation:
    slide_level: 2
---

# This is my first header

In the Beamer PDF File, I would like the header to be in two seperate paragraphs like this:

This is my
first header

Is there a way to do this?

2 Answers

You can simply use the LaTeX \newline command:

---
title: "Untitled"
author: "duckmayr"
date: "10/23/2019"
output: beamer_presentation
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```

## Multiline \newline Heading

blah blah blah

enter image description here

The easiest way is to put 2 spaces after my, i.e.

This is my[space][space]

first header

Try that.

Related