Cover letter with style - part four
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 use the \firstfoot command. Basically it works like \firsthead, so I have nothing special to add. I will update the template with:
-
\ProvidesFile{standard.lco}[%
-
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
-
-
\usepackage{fontspec}
-
-
% ==============================================
-
% 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}
-
-
% ==============================================
-
% FORMATTING STUFF
-
% ==============================================
-
-
% === font settings
-
\defaultfontfeatures{Mapping=tex-text}
-
\setmainfont {Adobe Garamond Pro}
-
\setsansfont {Gill Sans Std}
-
-
%set the font size and leading
-
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
-
-
% === header settings
-
\firsthead{
-
\centering
-
{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}\\[5mm]
-
\fontsize{21}{21}\selectfont\scshape Programmer and Architect at Initech
-
}
-
-
% === footer settings
-
\firstfoot{
-
\centering
-
\usekomavar{fromaddress} \\
-
\usekomavar{fromemail} \usekomavar{fromphone}
-
}
-
-
\endinput
At line 39 I've declared my new footer. I wanted the material in the footer to be centered (line 40) 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 (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 it will be an ugly duplication. Instead, I will use \renewcommand{}{}. As first parameter it takes the command to be redefined and as second parameter you declare the new material to use instead. Well, let's proceed:
-
\ProvidesFile{standard.lco}[%
-
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
-
-
\usepackage{fontspec}
-
-
% ==============================================
-
% 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}
-
-
% ==============================================
-
% FORMATTING STUFF
-
% ==============================================
-
-
% === font settings
-
\defaultfontfeatures{Mapping=tex-text}
-
\setmainfont {Adobe Garamond Pro}
-
\setsansfont {Gill Sans Std}
-
-
%set the font size and leading
-
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
-
-
% === header settings
-
\firsthead{
-
\centering
-
{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}\\[5mm]
-
\fontsize{21}{21}\selectfont\scshape Programmer and Architect at Initech
-
}
-
-
% === footer settings
-
\firstfoot{
-
\centering
-
{
-
\renewcommand{\\}{\textperiodcentered}
-
\usekomavar{fromaddress}
-
}\\
-
\usekomavar{fromemail} \usekomavar{fromphone}
-
}
-
-
\endinput
First of all, I enclose the first line in curly braces (line 41 and 44). In this way the effect of \renewcommand will remain local and will not affect the entire document. At line 42 I redefine the meaning of the \\ command, specifying it has to be replaced by a dot. That's all. Let's look at the result

So, only for the first line in the footer, the line breaks in my address were replaced by a dot. Now just enlarge the dots and add some space before and after them:
-
\ProvidesFile{standard.lco}[%
-
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
-
-
\usepackage{fontspec}
-
-
% ==============================================
-
% 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}
-
-
% ==============================================
-
% FORMATTING STUFF
-
% ==============================================
-
-
% === font settings
-
\defaultfontfeatures{Mapping=tex-text}
-
\setmainfont {Adobe Garamond Pro}
-
\setsansfont {Gill Sans Std}
-
-
%set the font size and leading
-
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
-
-
% === header settings
-
\firsthead{
-
\centering
-
{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}\\[5mm]
-
\fontsize{21}{21}\selectfont\scshape Programmer and Architect at Initech
-
}
-
-
% === footer settings
-
\firstfoot{
-
\centering
-
{
-
\renewcommand{\\}{\ {\large\textperiodcentered}\ }
-
\usekomavar{fromaddress}
-
}\\
-
\usekomavar{fromemail} \usekomavar{fromphone}
-
}
-
-
\endinput
Look carefully at line 42. 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 in curly braces (otherwise the trailing space 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:
-
\ProvidesFile{standard.lco}[%
-
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
-
-
\usepackage{fontspec}
-
\usepackage{marvosym}
-
-
% ==============================================
-
% 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}
-
-
% ==============================================
-
% FORMATTING STUFF
-
% ==============================================
-
-
% === font settings
-
\defaultfontfeatures{Mapping=tex-text}
-
\setmainfont {Adobe Garamond Pro}
-
\setsansfont {Gill Sans Std}
-
-
%set the font size and leading
-
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
-
-
% === header settings
-
\firsthead{
-
\centering
-
{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}\\[5mm]
-
\fontsize{21}{21}\selectfont\scshape Programmer and Architect at Initech
-
}
-
-
% === footer settings
-
\firstfoot{
-
\centering
-
{
-
\renewcommand{\\}{\ {\large\textperiodcentered}\ }
-
\usekomavar{fromaddress}
-
}\\
-
{\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}
-
}
-
-
\endinput
At line 5 I included the marvosym package; the rest is happening at line 46. 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:
-
\ProvidesFile{standard.lco}[%
-
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
-
-
\usepackage{fontspec}
-
\usepackage{marvosym}
-
-
% ==============================================
-
% 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}
-
-
% ==============================================
-
% FORMATTING STUFF
-
% ==============================================
-
-
% === font settings
-
\defaultfontfeatures{Mapping=tex-text}
-
\setmainfont {Adobe Garamond Pro}
-
\setsansfont {Gill Sans Std}
-
-
%set the font size and leading
-
\renewcommand{\normalsize}{\fontsize{12.5}{17}\selectfont}
-
-
% === header settings
-
\firsthead{
-
\centering
-
{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape \usekomavar{fromname}}\\[5mm]
-
\fontsize{21}{21}\selectfont\scshape Programmer and Architect at Initech
-
}
-
-
% === footer settings
-
\firstfoot{
-
\centering
-
\addfontfeature{LetterSpace=20.0}\scshape
-
{
-
\renewcommand{\\}{\ {\large\textperiodcentered}\ }
-
\usekomavar{fromaddress}
-
}\\
-
{\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}
-
-
\endinput
Basically I just added the line 42. The result?

Quite a long journey for a fucking footer, but we're done and I hope you will like the final result so far. Please mind that the above screenshot was made smaller in respect of the others. To see the footer in respect of the entire page, here it is the last picture

I think it is already quite a good letter, but in the next part we will watermark our logo.
It looks very cool, thanks.
In my copy, \firstfoot doesn’t do anything. \firsthead is fine, but no matter if I put a bunch of filler text in \firstfoot it doesn’t show up. Am I missing something? I also had to add a } at line 48 to close the \firstfoot.
-J
amazing - thanks!