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: html_document
---
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.
Try using a pipe |
in each line:
---
title: |
| Veryyyyyyy
| yyyyyyyyyyyyyy Looooo
| oooooooooooooooo
| oooooooooooong
author: "Foo Bar"
date: "6 March 2015"
output: html_document
---
For a centered, multi-line title:
---
title: |
<center> Veryyyyyyy </center>
<center> yyyyyyyyyyyyyy Looooo </center>
<center> oooooooooooooooo </center>
<center> oooooooooooong </center>
author: "Foo Bar"
date: "6 March 2015"
output: html_document
---