R降价格式标题

编程入门 行业动态 更新时间:2024-10-26 22:17:53
R降价格式标题 - pdf输出(R markdown format title - pdf output)

我确信这已经存在,但我似乎无法找到它。 如何在编译为pdf的R降价文档中更改标题的字体大小和间距?

谢谢!

I'm sure this is already out there but I can't seem to find it. How can I change the font size and spacing for the title in an R markdown document compiled as a pdf?

Thanks!

最满意答案

我不确定你想要文件的样子,但是这里有一些用Latex标签控制间距和字体大小的方法。 在下面的rmd文档中:

最初的\vspace{5cm}会在标题的第一行上方添加空格。 \vspace{0.5cm}在标题的两行之间添加空格。 \LARGE和\Large在标题的不同行上提供不同的字体大小。 | 在标题的每一行的开头允许多行标题。 如果您需要单独的封面,主文档开头的\newpage将在标题页后面的新页面上启动主文档文本。
--- title: | | \vspace{5cm} \LARGE{My Title is really long and takes up several lines of text} | \vspace{0.5cm} \Large{My Title is really long and takes up several lines of text} author: "eipi10" date: "5/16/2017" output: pdf_document --- \newpage Document text here.

I'm not sure exactly how you want the document to look, but here are some ways to control spacing and fontsize with Latex tags. In the rmd document below:

The initial \vspace{5cm} adds space above the first line of the title. \vspace{0.5cm} adds space between the two lines of the title. \LARGE and \Large give different font sizes on different lines of the title. | at the beginning of each line of the title allows a multi-line title. If you want a separate cover page, \newpage at the beginning of the main document will start the main document text on a new page after the title page.
--- title: | | \vspace{5cm} \LARGE{My Title is really long and takes up several lines of text} | \vspace{0.5cm} \Large{My Title is really long and takes up several lines of text} author: "eipi10" date: "5/16/2017" output: pdf_document --- \newpage Document text here.

更多推荐

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

发布评论

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

>www.elefans.com

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