34

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?

2 Answers 2

56

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
18

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
    Commented Jun 4, 2019 at 8:19
  • 2
    @AstroFloyd in my environment, org-latex-packages-alist is empty by default. Commented May 14, 2020 at 16:20
  • One down-side of such modifications could be creating problems for beamer class exporting (geometry package is not compatible with beamer). Commented Feb 1, 2021 at 0:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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