wolfsatthedoor
wolfsatthedoor

Reputation: 7303

How can I force a line break in rmarkdown's title for beamer output?

I have a quite long title in a rmarkdown document and I would like to force a line break in a specific position.

Minimum example:

---
title: "Quite long title want the * line break at the asterisk"
output: beamer_presentation
---

I have tried: \n, \newline, \ and a manual line break. None of them seem to work.

I believe it has to be quite straightforward but I haven't been able to find a solution.

Upvotes: 5

Views: 951

Answers (1)

You'll have to escape the \:

---
title: "Quite long title want the \\newline line break at the asterisk"
output: 
  beamer_presentation: 
    keep_tex: true
---
test

enter image description here

Upvotes: 3

Related Questions