how to set individual margins (left/right/top/bottom) with pandoc shell command when creating pdf?
3
votes
2
answers
2990
views
I'm pleased to see pandoc can specify some latex (which I know almost nothing of) geometries to customize the margin size of a pdf it creates like so....
pandoc -V geometry:margin=.5in somefile.mkd --pdf-engine=xelatex -o output.pdf
...but is there a way to make the side margins different from top/bottom margins? Can each of the four (top/right/bottom/left) margin sizes be set individually?
I've tried options like geometry:margin=.5in,2in
and geometry:margin-side
and geometry:margin-top
but none of those work.
From https://pandoc.org/MANUAL.html these margin-left, margin-right, margin-top, margin-bottom
should be able to be set individually but I can't figure out how to use them as commandline arguments.
Asked by alec
(1928 rep)
Aug 8, 2020, 02:38 AM
Last activity: May 23, 2024, 04:16 PM
Last activity: May 23, 2024, 04:16 PM