Markdown to PDF: Convert using Half Letter paper size #10113
Answered
by
badumont
johnmapeson
asked this question in
Q&A
Replies: 2 comments 2 replies
-
LaTeX supports only b5paper out of the box among the B formats. Fortunately, the "geometry" variable allows you to use the LaTeX package of the same name, which considerably extends the range of supported predefined paper sizes:
pandoc -V geometry:b6paper -o output.pdf input.md
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Half letterpaper is not a predefined size in geometry, but you can provide arbitrary dimensions, e.g.:
pandoc -o output.pdf -V geometry:paperwidth=2cm -V geometry:paperheight=12cm input.md
By the way, the documentation of almost all LaTeX packages can be found here: https://ctan.org/
It may be more convenient to set the "geometry" variable in a metadata header as shown in the Pandoc manual.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
johnmapeson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to convert from Markdown to PDF using the Half Letter (5.5 by 8.5 inches) paper size?
I tried
But this gives an error:
Beta Was this translation helpful? Give feedback.
All reactions