How to export to an A4 PDF using Org mode

I am back with sharing knowledge that I spent way too long to gain.

By default, emacs creates US Letter PDFs. I am not in the US, I don't have US Letter sheets, and I prefer to have A4 in every single aspect.

But I know nothing about LaTeX, so would I have to export to ODT and then change the page style to A4?

Now that I have the solution, I don't.

And for your sake I will share the solution with you.

If you have a better one, please don't be afraid to tell me, so we can all benefit from it.

You'll need

What you do is add the following LaTeX options to your Org document:

#+LATEX_CLASS: article  
#+LATEX_CLASS_OPTIONS: [a4paper]  

That's it.


¹ I didn't know TeXlive was so massive before I tried to install it. 2 Gigabytes?! I might actually be better off converting Org documents to ODT and then PDF...

tags: emacs


~konomo CC-BY-NC-4.0

=> Back

Proxy Information
Original URL
gemini://tilde.team/~konomo/gemlog/entries/2021/03/how-to-export-to-an-a4-pdf-using-org-mode.gmi
Status Code
Success (20)
Meta
text/gemini; lang=en
Capsule Response Time
446.524612 milliseconds
Gemini-to-HTML Time
0.347013 milliseconds

This content has been proxied by September (ba2dc).