Skip to content

Conversation

@lluisalemanypuig
Copy link
Contributor

Whoever wants to shrink the margins, they can now do so via the new optional command line arguments

--geometry:left
--geometry:right
--geometry:top
--geometry:bottom

which are default options in pandoc (see pandoc's documentation here).

Their default value is ''. These options are not passed to pandoc when their value is ''.

The argument parser added can be extended easily with other pandoc's argument options. If the new options' default value is '' then they will not be passed to pandoc.

Whoever wants to shrink the margins, they can now do so via the new
optional command line arguments

--geometry:left
--geometry:right
--geometry:top
--geometry:bottom

which are default options in pandoc (see pandoc's documentation
[here](https://pandoc.org/demo/example33/6.2-variables.html)).

Their default value is ''. These options are not passed to pandoc when
their value is ''.

The argument parser added can be extended easily with other pandoc's
argument options. If the new options' default value is '' then they will
not be passed to pandoc.
@lluisalemanypuig lluisalemanypuig changed the title Optionally specify margin size #396 Optionally specify margin size (#396) Aug 27, 2025
@Overv
Copy link
Owner

Overv commented Aug 30, 2025

Nice work!

I'll open up a discussion in #396 which margins should be the default for the hosted PDF.

@Overv Overv merged commit 527216e into Overv:main Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants