简体   繁体   中英

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

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?

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

在此处输入图像描述

The easiest way is to put 2 spaces after my, ie

This is my[space][space]

first header

Try that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM