Reputation: 7303
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
Reputation: 38783
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
Upvotes: 3