26

I want to export my org document as a PDF, but its margins are way too big. I would like to re-size them as I wish. I am using

#+LaTeX_CLASS: report

I do not know if there is a way. Any help?

46

The simplest way to tweak the formatting of a LaTeX export is by using the geometry package. Try something like this:

#+LATEX_HEADER: \usepackage[margin=0.5in]{geometry}

0
16

Another way to achieve the same effect more permanently is to modify org-latex-packages-alist to add the geometry package, as follows:

(setq org-latex-packages-alist '(("margin=2cm" "geometry" nil)))
3
  • Does this overwrite an existing list, append to it, or is the default empty anyway? – AstroFloyd Jun 4 '19 at 8:19
  • 2
    @AstroFloyd in my environment, org-latex-packages-alist is empty by default. – Mingwei Zhang May 14 '20 at 16:20
  • One down-side of such modifications could be creating problems for beamer class exporting (geometry package is not compatible with beamer). – neuroprinciplist Feb 1 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.