0

I am crafting my presentations as .Rpres as of lately. My title is a little long and breaks at an arbitrary location. Is there a way to influence this behavior? I tried HTML (<br>) and | but no success... It sounds so elementary, but I did not find any info here or on Google.

Is there a way to display the heading in two lines?
========================================================

It should look kind of like this:

Is there a way to display 
the heading in two lines?
========================================================

Thanks a lot

Karl A
  • 165
  • 11
  • .Rpres compiles to markdown, so using two space characters before the line break should work. (It does here on SO in editor preview, but not for the rendered result - but I think that might be a SO problem?) – CBroe Oct 04 '21 at 11:42
  • @CBroe thanks a lot. I tried that but for me it didn't work. apparently the whole title has to be in one single line – Karl A Oct 04 '21 at 11:45
  • 1
    Looks like it might be deliberate that they did not make this work in headlines, https://stackoverflow.com/questions/13730982/force-line-break-br-in-header-h1-in-markdown – CBroe Oct 04 '21 at 11:47
  • You said in comments, using HTML would not work for you - not even when it is _just_ the `
    `? You should be able to keep the _rest_ of the syntax as you have it, i.e. generate the headline via the `=====` underneath, you would not have to write the actual `

    ` / `

    ` tags as HTML as well.
    – CBroe Oct 04 '21 at 11:50
  • No, that just gives me `long title
    in two lines`
    – Karl A Oct 04 '21 at 12:00

2 Answers2

0

<pre>Is there a way to display 
the heading in two lines?</pre>

<p>Is there a way to display<br> the heading in two lines?</p>
Aman Sharma
  • 933
  • 1
  • 4
  • 12
  • Hi thanks but .Rpres are Markdown documents that might accept HTML, but your solution does not work for me – Karl A Oct 04 '21 at 11:46
0

If you are using html than <br> tag will break the text to next line

<h3>Is there a way to display<br>
the heading in two lines?</h3>
Rana
  • 2,500
  • 2
  • 7
  • 28
  • Hi thanks but .Rpres are Markdown documents that might accept HTML, but your solution does not work for me – Karl A Oct 04 '21 at 11:46