Split the title onto multiple lines?

后端 未结 3 1045
灰色年华
灰色年华 2020-11-30 12:18

In an R markdown document (html and presentations), is it possible to manually split the title onto multiple lines? I tried playing with pipes which produces orrendous outpu

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 12:54

    For PDF output, experimentation revealed that the following works:

    ---
    title:  'A title I want to  \nsplit on two lines'
    author: 
    date: 
    output: pdf_document
    ---
    

    That is two spaces followed by \n.

提交回复
热议问题