将标题分成多行? [英] Split the title onto multiple lines?
问题描述
在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
只是为了排除可能性,我尝试将\\
或\newline
放在这两个位置,所以不会分开,因此对于PDF来说似乎有些棘手. \linebreak
停止编织程序分析.也许其他用户可以解决编织PDF的问题.
For PDF
Just to rule out possibilities, I've tried to put \\
or \newline
, 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.
这篇关于将标题分成多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!