Reputation: 21
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?
Upvotes: 2
Views: 253
Reputation: 28662
Pass any number of further options to Pandoc simply by extending your options
argument, e.g.:
Pandoc.convert(f="myfile.md", format="pdf", options="-s -V geometry:margin=1in")
Upvotes: 1