A tutorial illustrating a way to obtain stylish cover letters with XeLaTeX
This is the fourth part of the tutorial Cover letter with style. You can find the third part here.
After the header, I will take care of the footer. To change the default I will change the firstfoot variable. Basically it works like firsthead, so I have nothing special to add. I will update the template with:
At line 49 I’ve declared my new footer. I wanted the material in the footer to be centered (line 50) and I’ve read the content of the variable fromaddress and used it as the first line, then the break line (\\) and then the email and phone number, also read from the corresponding variables. The result is the following:
There’s a problem with the way I declared the fromaddress: to have KOMA-Script rendering my address on three lines, I used the break line command (\\) but now I would like a one-liner address in the footer. I could declare yet another variable, this time avoiding to put the line breaks, but I don’t like unneeded duplications. Instead, I will use \renewcommand, to change the meaning of \\ within the context of the footer’s first line. \renewcommand takes the command to be redefined as first parameter; as second parameter you declare the new material to use instead. Take a look at line 11 below
I redefined the meaning of the \\, specifying it has to be replaced by a dot and not with a line break. Mind the use of the enclosing curly brackets to limit the redefinition of \\ to the address line. That’s all. Let’s look at the result
So, the line breaks in my address were replaced by a dot. Now just enlarge the dots and add some space before and after them:
Look carefully at line 11. First of all, I used the escaped space (a backslash followed by a white space) to instruct TeX to put literally two spaces around the dot. Without escaping the spaces, TeX will happily swallow them. Secondly, I applied the \large modifier to the dot character and I enclosed both in curly braces (otherwise the rest of the address would be enlarged too). The result will be the following:
Nice, we have our address on one line now. It’s time to take care of the second line. For the email and the phone contacts, I will use a couple of symbols from the marvosym package. The template so becomes:
At line 7 I included the marvosym package; the rest is happening at line 18. Nothing special: I used the enlarged version of the symbols \Letter and \Telefon. I also used an escaped space to keep the email address separated from the telephone number.
Now, the final touch: I will letterspace the entire footer and use the small caps. So, here it is:
Basically I just added the line 16. The final result?
I think it is already quite a good letter, but in the next part we will watermark our logo.