将标题拆分为多行?

编程入门 行业动态 更新时间:2024-10-25 16:20:59
本文介绍了将标题拆分为多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在 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.

更多推荐

将标题拆分为多行?

本文发布于:2023-10-26 19:12:46,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1531094.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标题

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!