Pandoc Plugin - Exporting as PDF via LaTeX with custom style

What I’m trying to do

I only want to change the margin of the pdf export, don’t need more than that really, but i have no clue how to do it. For now i was just exporting the markdown document to LaTeX and editing the margin manually with the geometry package in Overleaf, but i’m looking for some way to make this automatic right from the pdf export with pandoc.

Not having a clue otherwise but … Can you simply include LaTeX preamble commands directly in the YAML for the Obsidian document in a way that they are passed through to the LaTeX compiler. If so, put this in the appropriate place.


I imagine otherwise that you will run afoul of the fact that markdown is not designed to demand configurations for page settings in a manner equivalent to PDF specifications.


1 Like