在 R markdown 文档(html 和演示文稿)中,是否可以手动将标题拆分为多行?我尝试使用产生可怕输出的管道.
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 output.
--- title: 'A title I want to split on two lines' author: date: output: ioslides_presentation --- 推荐答案对于 HTML 输出,只需使用 <br> 标签,而如果您的输出是 PDF 或 PDF 演示标准 LaTeX 代码\ 给出的换行符应该可以工作.
For an HTML output just us the <br> tag while if your output is a PDF or PDF presentation standard LaTeX code to break line given by \ should work.
--- title: 'A title I want to <br> split on two lines' author: date: output: ioslides_presentation ---对于 PDF
只是为了排除可能,我试过把 \ 或 ewline 都放不分割,所以对于 PDF 来说似乎有点棘手.linebreak 停止 knitr 解析.也许其他用户可以为 knitr PDF 解决这个问题.
For PDF
Just to rule out possibilities, I've tried to put \ or ewline, both do not split, so for PDF seems to be a little bit tricky. linebreak stop knitr parsing. Maybe another user can solve this question for knitr PDFs.
更多推荐
将标题拆分为多行?
发布评论