Create letters with Emacs org-mode
June 3 2017129 words, ~1 min. read
emacs, org-mode, letters
For a long time, I was trying to figure out how to create letters using Emacs, preferably using org-mode. I came across this article - Creating letters with KOMA-script, and I am quite convinced with the output. While I played around with the options to customize my need, I ended up with the following template,
#+DATE: <date>
#+SUBJECT: <subject>
#+LATEX_CLASS_OPTIONS: [fontsize=10pt,subject=centered,subject=afteropening,parskip=full,fromrule=afteraddress]
#+LATEX_HEADER: \usepackage[margin=1in]{geometry}
#+LATEX_HEADER: \usepackage[default]{droidserif}
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+FROM_ADDRESS: <address 1>
#+FROM_ADDRESS: <address 2>
#+FROM_ADDRESS: <address 3>
#+FROM_ADDRESS: <address 4>
#+TO_ADDRESS: <address 1>
#+TO_ADDRESS: <address 2>
#+TO_ADDRESS: <address 3>
#+TO_ADDRESS: <address 4>
#+OPENING: Dear <name>,
...
#+CLOSING:
Regards
Once I filled the template with contents, I followed the below steps to create a PDF letter.
- Load library
ox-koma-letter - Export as PDF using option
C-e-k-p
Please also refer KOMA script documentation.