[英]Is there any way to control styling options in R Markdown when generating PDF?
I am using R Markdown in RStudio to generate some documentation. 我在RStudio中使用R Markdown生成一些文档。
My output looks good when I try the option of "Knit HTML". 尝试使用“编织HTML”选项时,我的输出看起来不错。 I am able to control styling options and apply CSS Files explicitly.
我能够控制样式选项并显式应用CSS文件。
However when I try to "Knit PDF" (I had to install pdf-tex before being able to do that) I can't change the default styling method. 但是,当我尝试“编织PDF”时(必须先安装pdf-tex才能这样做),我无法更改默认的样式设置方法。 Also, the tables go out of margins.
此外,表超出了边距。 Is there any method to provide or use CSS Files or themes before creating PDF in RStudio using RMarkdown?
在使用RMarkdown在RStudio中创建PDF之前,是否有任何方法可以提供或使用CSS文件或主题?
Unfortunately, according to the R Markdown Reference Guide , there is no in-built solution to style a document with CSS or theme when knitting a PDF. 不幸的是,根据《 R Markdown 参考指南》 ,在编织PDF时,没有内置的解决方案可以用CSS或主题设置文档样式 。
See screenshot below: 请参见下面的屏幕截图:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.