Cover letter with style - part one
Time flies and almost one year went by without me writing the 5th part of Your Curriculum in LaTeX series. You know what? I grew tired of the tutorial: you can figure out the rest1
Instead, I decided to start a new tutorial, this time illustrating a way to obtain a stylish cover letter with XeTeX (and XeLaTeX), which enables the easy use of OpenType fonts (through the fontspec package) and support for Unicode text (no need of escape extended characters anymore). Also, as in the other tutorial, KOMA-Script will be used.
The cover letter is the first thing they will read; possibly its form is as much important as its content. Even if you don't agree, a fancy letter doesn't do any harm, doesn't it? For example, what about a letter like this2

Strong header, contact data in footer, logo as watermark. Even a barcode to pimp the destination address! Ok, the barcode is a little bit too nerdy, but it will give me the chance to show how easy is to use PSTricks from inside XeLaTex.
In this tutorial I will also show how to separate the content of your letters from the style, so you can swap the latter really easily, to obtain something completely different, like this for example:

Ok, let's start. I assume you dutifully installed XeTeX, XeLaTeX, KOMA-Script and you are ready to follow me. Ready?
Create a .tex file and past the skeleton of the cover letter into it:
-
\documentclass{scrlttr2}
-
-
\begin{document}
-
-
\begin{letter}{%
-
Damage Inc. --- HR Dept.\\%
-
Paulus Potterstraat 134\\%
-
1753KJ Amsterdam
-
}
-
\setkomavar{subject}{Cover Letter}
-
\opening{Dear Recruiter,}
-
-
My name is Iulius Caesar bla bla bla...
-
-
\closing{Regards}
-
-
-
\end{letter}
-
\end{document}
At line 1 you are instructing XeLaTeX to load the letter class from KOMA-Script, which will format a nice letter for you. At lines 6,7,8 the destination address is specified. At line 13 the body of the letter. The other parts should be trivial to understand. Basically this is a template for any kind of letter you will write. Nothing difficult indeed. If you process this with XeLaTeX you will get:

Effortlessly we obtained a nice formatted letter. KOMA-Script even added three little dashes on the left border: they are guides to fold the letter with precision. The only thing is missing is the sender address. I could have added the KOMA instructions to set the sender address directly into the tex file, but there's a better method.
The letter document class defined by KOMA-Script support the loading of a setting/style file. In this file, with extension .lco, you can store things like your data (used to compose the sender address) or whatever latex instruction, to change the style for example. In this way the .tex will contain just the letter text and nothing else. This is handy for two reason: 1) you don't have to type your data for each letter you write; 2) you may have more .lco files that you can use to change altogether the look & feel.
So, create a file and call it standard.lco. Stick your data in it, like this:
-
\ProvidesFile{standard.lco}[%
-
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
-
-
% ==============================================
-
% PERSONAL DATA
-
% ==============================================
-
\setkomavar{fromname}{Iulius Caesar}
-
\setkomavar{fromaddress}{Van Eeghenlaan 69\\1691QT Amsterdam\\Nederland}
-
\setkomavar{fromphone}{+31 (0)22 7394203}
-
\setkomavar{fromemail}{iulius@gmail.com}
-
\setkomavar{fromfax}{+31 (0)71 5144543}
-
\setkomavar{fromurl}{http://stefano.italians.nl}
-
\setkomavar{frombank}{Postbank 9307157}
-
\setkomavar{place}{Amsterdam}
-
\setkomavar{signature}{Iulius Caesar}
-
-
\endinput
Change accordingly your .tex file (containing the text of the letter) to instruct KOMA-Script to load the standard.lco file:
-
\documentclass[standard]{scrlttr2}
-
-
\begin{document}
-
-
\begin{letter}{%
-
Damage Inc. --- HR Dept.\\%
-
Paulus Potterstraat 134\\%
-
1753KJ Amsterdam
-
}
-
\setkomavar{subject}{Cover Letter}
-
\opening{Dear Recruiter,}
-
-
My name is Iulius Caesar bla bla bla...
-
-
\closing{Regards}
-
-
-
\end{letter}
-
\end{document}
I've changed just the first line. Urge yourself to run XeLaTeX to see the results:

The sender address now appears where it is supposed to be. You will notice that KOMA-Script will also add the one-liner version, meant to pop up from the transparent window of the envelope - if any - together with the destination address.
Well, that's all for the first part. There's still lot to explain so please proceed to the second part.
I’m anxicously awaiting the remainder of this tutorial. Is it possible to obtain the source of the finished example, so I can figure it out myself & start using this cover letter?
This is by far the most easily understood instructions for writing letters with Kom-Script. It would be relly good if you would show how yuou modified the files to produce the header and footer on your initial (final) example.
Please keep up the good work.
Regards
Gordon Evans
Thank you so much. This is an amazing website and a perfectly comprehensible tutorial for really stylish letter. Please keep on publishing.
Regards,
Johannes
Very helpful, congratulations!
I have a question: for office use, I’d like to make a template like your second example, but following french standards (contact info on the left of the body; address box compliant with the DL format (the box should be on the right side, see for example for the address box http://wiki.lyx.org/uploads/Examples/Letters/Koma_letter2_by_Jean-Marie/lettrenf.jpg )
Is there a tweak with the nco file to have that from your template?
Best regards MG
Congratulations, more than that, you got an awesome style that visually pleasing the reader with your LaTeX documents. Thanks!
Tzzzzz!!!! I’m a woman, here to complain
but it was useful. Thanks
I (a woman) am here to complain as well!
But I do like the cover letter. So thanks for that.