[英]render a markdown file to pdf with rmarkdown::render() and adjust page margins and font
[英]How t o enter properly instructions to widen margins a page for RMarkdown pdf.doc
如果你想在你的文件中做一个特殊的边距(编织到 pdf ),那么试试这个 LaTeX 解决方案:
将此包添加到标题:
header-includes:
\usepackage{geometry}
为一些页面做一个特殊的边距(你也可以用mm、cm):
\newgeometry{top=1in,left=1in,bottom=1in,right=1in}
回到你以前的风格后:
\restoregeometry
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.