I am new to R and am trying to convert a markdown document to PDF using the Pandoc.convert
function. Pandoc.convert
creates the PDF just fine, although the border on the document is ridiculously large. Is there a way to set the border in Pandoc.convert
to a smaller border?
Example used:
Pandoc.convert(f="myfile.md", format="pdf", options="-s")
I have tried looking in the Pander package help, and on the Pander site and found no result for Pandoc.convert .
There are three option in pandoc, including: -V geometry:margin=1in
Although, I have found none for Pandoc.convert
specifically. Is this even possible with just the Pandoc.convert
command, without getting into LaTeX?
仅通过扩展options
参数即可将任意数量的其他选项传递给Pandoc,例如:
Pandoc.convert(f="myfile.md", format="pdf", options="-s -V geometry:margin=1in")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.