17

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?

35

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}

  • 3
    The second approach worked for me. Thanks! – makeMonday Feb 6 '15 at 7:37
  • 2
    upvote for the 2nd option! – JohnJ Oct 15 '16 at 18:20
  • I've removed the "1st option", as it clearly doesn't work. – Brian Z Aug 4 '18 at 12:45
10

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)))
  • Does this overwrite an existing list, append to it, or is the default empty anyway? – AstroFloyd Jun 4 at 8:19

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.