R降价格式标题 - pdf输出(R markdown format title - pdf output)
--- 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.
--- 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.
我确信这已经存在,但我似乎无法找到它。 如何在编译为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.
更多推荐
发布评论