24

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?

43

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}

| improve this answer | |
15

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)))
| improve this answer | |
  • 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 at 16:20

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.