Page Layout[Letter of application] consistent header and footer layout

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
simou
Posts: 2
Joined: Sat Mar 12, 2011 6:58 pm

[Letter of application] consistent header and footer layout

Post by simou »

1st English isn't my native language (that would be German), so please bear with me, I'll do my best. Thank you :-)

Now what I'm trying to do, is to assemble a complete "letter of application" consisting of

A) a cover letter (Dear company xyz, I'd like....)
B) a cover sheet ( containing my cute little photo, and a quick personal overview )
C) my CV
D) and my "About Me" page (I'm a ambitious, play piano, speak 42 languages, blah blah)

What I've done so far:

cover letter: written with SCRLTTR2 (A)
cover sheet: written with SCRARTCL (B)

TODO
write an "About Me" page with SCRARTL
write the CV with moderncv


My problem starts with the layout and positioning of the header. As you can see from
the attached side-by-side comparison there is a huge difference in the positioning of the headers, especially
if you look at the job title. The upper part in the screenshot belongs to the cover sheet (B), the
lower part belongs to the cover letter (A).

My goal would be to have exactly the same looking header across all documents. I.e. same width,
same overall font size, same distance to the upper margin, a blue sep. line in the cover letter.

For the header in the cover sheet (B) I'm using the scrpage2 class. The header definition looks as follows:

Code: Select all

\chead{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape\name\\[5mm]\fontsize{21}{21}\selectfont\scshape\jobtitle}
Basically the same definition is used for my cover letter (A)

Code: Select all

\firsthead{
  \centering
               {\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape\usekomavar{fromname}}\\[5mm]
              \fontsize{21}{21}\selectfont\scshape\jobtitle\\
}
Though both header definitions look pretty much the same in the source code, the final output doesn't.
Can you please help me to fix this? The next step would be to have the same footer in all 3 documents and
then also in the CV (same header and footer using moderncv).

Disclaimer: I already posted the this problem on a German LaTeX board, but there doesn't seem to be much traffic.
In any case, this is the link: http://www.golatex.de/layout-von-scrltt ... t5532.html

Anyway here are my MWE's. Cheers!

CoverLetter.tex

Code: Select all

%based on: http://stefano.italians.nl/archives/55

\documentclass[standard-minimal]{scrlttr2}

\begin{document}
\begin{letter}{%
      IBM\\%
      Schönestraße 1\\%
      xxxx München
}
\setkomavar{subject}{Bewerbung als ....}
\opening{Sehr geehrte.....}
bla
\closing{Mit freundlichem Gruß}

\newpage


\end{letter}
\end{document}
 
CoverLetter.tex has a standard-minimal.lco

Code: Select all

\ProvidesFile{standard-minimal.lco}[%
  2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]

\usepackage{polyglossia,
                   fontspec,
                   marvosym
                   }

\usepackage[]{scrpage2}
\setdefaultlanguage{german} 

% ==============================================
%  PERSONAL DATA
% ==============================================

\setkomavar{fromname}{Heiko Schmitz}
\setkomavar{fromaddress}{Ferberstraße 6, 50591, Köln, Germany}
\setkomavar{fromphone}{+49 (0) 221 714131}
\setkomavar{fromemail}{Heiko.Schmitz@gmail.com}
\setkomavar{signature}{Heiko Schmitz}

\newcommand{\jobtitle}{Software Engineer - Java Specialist}


% ==============================================
%  FORMATTING STUFF
% ==============================================

\KOMAoptions{foldmarks=false}

% === font settings
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{GaramondPremrPro}
\setsansfont{GillSansMTPro-Light}

%set the font size and leading
\renewcommand{\normalsize}{\fontsize{12}{17}\selectfont} 


% ==============================================
%  HEADER STUFF
% ==============================================

\pagestyle{scrheadings}

% === header settings
\firsthead{
  \centering
               {\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape\usekomavar{fromname}}\\[5mm]
              \fontsize{21}{21}\selectfont\scshape\jobtitle\\
}

% ==============================================
%  FOOTER STUFF
% ==============================================

% === footer settings
\firstfoot{
  \centering
  \addfontfeature{LetterSpace=20.0}\scshape
	{
	  \renewcommand{\\}{\ {\large\textperiodcentered}\ }
	  \usekomavar{fromaddress}
	}\\
	{\Large\Letter} \usekomavar{fromemail} \ {\Large\Telefon} \usekomavar{fromphone}
}

\endinput

CoverSheet.tex

Code: Select all

%\documentclass[12pt,DIV=12,BCOR=0.0pt,mmparskip=half-]{scrartcl}

\documentclass[]{scrartcl}
\usepackage{polyglossia,
                   geometry,
                   color
                   }

\usepackage[]{scrpage2}

\setdefaultlanguage{german} 

% ==============================================
%  PERSONAL DATA
% ==============================================

\newcommand{\jobtitle}{Software Engineer - Java Specialist}
\newcommand{\name}{Heiko Schmitz}

% ==============================================
%  GEOMETRY STUFF
% ==============================================

%\areaset{448.13095pt}{635.5pt}

% ==============================================
%  FONT STUFF
% ==============================================

% set the font size and leading
\renewcommand{\normalsize}{\fontsize{12}{17}\selectfont} 

% font settings
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{GaramondPremrPro}
\setsansfont{GillSansMTPro-Light}


% ==============================================
%  HEADER STUFF
% ==============================================

\pagestyle{scrheadings}
\setheadsepline[text]{.4pt}[\color{blue}]

\chead{\addfontfeature{LetterSpace=20.0}\fontsize{36}{36}\selectfont\scshape\name\\[5mm]\fontsize{21}{21}\selectfont\scshape\jobtitle}

% ==============================================
%  CONTENT
% ==============================================

\begin{document}
	\begin{tabular}{l r}
		\\
		\\
		\\
		\textbf{als} & Junior Softwareingenieur/in für embedded Software im Bereich Hubschraubersysteme\\
	\end{tabular}

\end{document}
Attachments
comp2.PNG
comp2.PNG (109.96 KiB) Viewed 10169 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

[Letter of application] consistent header and footer layout

Post by Stefan Kottwitz »

Hi simou,

welcome to the board!

To get a totally consistent layout though using different document classes, I would
  • choose one document class as master where header and footer are created. Here it could be
    • scrartcl with scrpage2, or
    • scrlttr2, if you already already have nice letter header and footer, respectively.
  • create a separate document with that class which is blank apart from your designed header and footer, produce a header/footer template pdf file from that,
  • in your document, which is using the other class, produce empty headers, but include the header/footer template using eso-pic for example (or atbegshi, textpos or everyshi).
This way you can use headers resp. footers made with one class together with another class.

Stefan
LaTeX.org admin
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

[Letter of application] consistent header and footer layout

Post by Stefan Kottwitz »

To add an example - let's say we created a blank letter but with header and footer, then we include it in an about me page based on scrartcl:

Code: Select all

\documentclass[...]{scrartcl}
\usepackage{graphicx}
\usepackage{eso-pic}
\AddToShipoutPicture*{\put(0,0){\includegraphics{blank_letter}}}
The same would be possible with moderncv.

Stefan
LaTeX.org admin
simou
Posts: 2
Joined: Sat Mar 12, 2011 6:58 pm

[Letter of application] consistent header and footer layout

Post by simou »

Hi Stephan, thx for the welcome!

I like the idea of using a template file. I think I'll give it a try.

Thanks!
.----------------------.

Ok I tried a naive approach to create a blank document which contains only the header and footer based on scrlttr2. But how do you fool LaTeX into producing a document that has no actual content?

Because this obviously doesn't work :)

Code: Select all

\documentclass[Anschreiben-minimal]{scrlttr2}

\begin{document}

\begin{letter}{}
\newpage
\end{letter}

\end{document}
What I'm supposed to do is:

1. Create a "blank" scrlttr2 document holding only my project wide header and footer and no other content. Save this as a PDF template file. (Still the question is how?)

2. Create the letter with scrlttr2 containing the correspondence but w/o any header or footer. Instead include the header/footer from the template file created in 1) using eso-pic.

3. Create the cover sheet again w/o any header/footer. Include the header/footer from the template file as in 2)

Repeat this for moderncv, etc...

Does this fit into your suggestion Stephan?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

[Letter of application] consistent header and footer layout

Post by Stefan Kottwitz »

  1. I did it this way, just don't have my document right here. I'll look for it. Perhaps you can start a normal letter, which of course produces an address field etc. and use the second page of the letter as blank page with header/footer, just containing \mbox{}, for example.
  2. no include necessary, just use the header in the same way like 1., since it's the same class.
  3. yes.
Stefan
LaTeX.org admin
Post Reply