I set up the following document where I think I was able to quite nicely put together a letter template for our company. However, what I can't seem to get to work are the nextfoot and nexthead komavars. Here is the *.tex:
\documentclass[
DIN,
a4paper,
pagenumber=false,
parskip=half,
fontsize=11pt,
fromalign=right,
fromphone=true,
fromemail=true,
fromrule=false,
foldmarks=true,
footsepline=false
]{scrlttr2}
\RequirePackage[ngerman]{babel}
\RequirePackage{lmodern}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{marvosym}
\RequirePackage{blindtext}
\RequirePackage{xcolor}
\RequirePackage{transparent}
\RequirePackage[hidelinks]{hyperref}
\RequirePackage{graphicx}
\RequirePackage{bm}
\usepackage{blindtext}
\newcommand*{\myfont}{\fontfamily{cmss}\selectfont}
\makeatletter
\@setplength{lochpos}{5.25em}
\@setplength{locvpos}{9em}
\@setplength{locwidth}{12em}
\@setplength{locheight}{15em}
\@setplength{firstfootvpos}{260mm}
\makeatother
\newcommand{\myFirstname}{Samplename}
\newcommand{\myFamilyname}{Samplefamilyname}
\newcommand{\myStreet}{Sample Street 30}
\newcommand{\myTown}{12345 Sampletown}
\newcommand{\myPosition}{Sampleposition}
\newcommand{\myCompanyname}{Sample Company UG}
\newcommand{\myCompanyMail}{\href{mailto:sample@sampledomain.de}{sample@sampledomain.de}}
\newcommand{\myCourt}{Gerichtsstand: Amtsgericht Sampletown}
\newcommand{\myRegisterEntry}{Geschäftsregister: HRB 12345678}
\newcommand{\myUstIdNr}{Ust.-ID-Nr.: DE 87654321}
\newcommand{\myCEOstring}{Geschäftsführer:}
\newcommand{\myCEOone}{Sample Name1}
\newcommand{\myCEOtwo}{Sample Name2}
\newcommand{\myCEOthree}{Sample Name3}
\newcommand{\myCEOlist}{\myCEOone, \myCEOtwo, \myCEOthree}
\newcommand{\myCEOs}{\myCEOstring\ \myCEOlist}
\newcommand{\myFromAddrSingle}{\myStreet, \myTown}
\setkomavar{date}{\today}
\setkomavar{fromname}{\myCompanyname}
\setkomavar{signature}{\myFirstname\ \myFamilyname}
\setkomavar{fromaddress}{\myStreet,\\\myTown}
\setkomavar{backaddress}{\myfont\myCompanyname \,\, $\bm\cdot$ \, \myStreet \,\, $\bm\cdot$ \, \myTown}
\setkomavar{place}{Sometown}
\setkomavar{fromphone}[\Mobilefone\,]{+49\,-\,(0)\,123\,-45\,67\,89\,00}
\setkomavar{fromemail}[\Letter\,]{\href{mailto:sample@sampledomain.de}{sample@sampledomain.de}}
\setkomavar{fromurl}[\Mundus\,]{\href{https://www.sampledomain.de}{www.sampledomain.de}}
\setkomavar{fromlogo}{\includegraphics[width=5cm,draft]{Banner.png}}
\setkomavar{frombank}{Sample Company UG \\ Samplebank \smallskip\\ IBAN: DE12 3456 7890 0012 3456 78 \\ BIC: ABCDEFG1XYZ}
\renewcommand*\familydefault{\sfdefault}
\setkomavar{subject}{A rather longish dummy sample subject}
\setkomavar{firsthead}{
\raggedright
\raisebox{0pt}[\useplength{backaddrheight}][\depth]
{\textbf{\usekomavar{fromname}} (haftungsbeschränkt) i.Gr.} \\ \medskip
\scriptsize
\myUstIdNr \\
\myRegisterEntry \\
\myCourt \\
\myCEOs \\
\raggedleft
\vskip -5.8em
\usekomavar{fromlogo}
}
\setkomavar{firstfoot}{
\texttransparent{0.6}{
\rule{\textwidth}{.4pt}}
\texttransparent{0.6}{
\parbox[t]{0.3\textwidth}{\footnotesize
\begin{tabular}[t]{l@{}}
\multicolumn{1}{@{}l@{}}{\textbf{Geschäftsinformation:}} \smallskip \\
\usekomavar{fromname}\\ \smallskip
\myFromAddrSingle \\
\myCEOstring\ \myCEOone,\\ \smallskip
\myCEOtwo, \myCEOthree
\end{tabular}}
\hfill{}
\parbox[t]{0.3\textwidth}{\footnotesize
\begin{tabular}[t]{l@{}}
\multicolumn{1}{@{}l@{}}{\textbf{Rechtliche Informationen:}} \smallskip \\
\myUstIdNr\\
\myRegisterEntry\\
\myCourt\\
\end{tabular}}
\hfill{}
\parbox[t]{0.3\textwidth}{\footnotesize
\begin{tabular}[t]{l@{}}
\multicolumn{1}{@{}l@{}}{\textbf{\usekomavar*{frombank}:}} \smallskip \\
\usekomavar{frombank}
\end{tabular}}
}
}
%\setkomavar{nexthead}{\usekomavar{firsthead}}
\setkomavar{nextfoot}{\usekomavar{firstfoot}}
\pagestyle{myheadings}
\setkomavar{location}{
\raggedright
\footnotesize
\textbf{Ansprechpartner:}\\ \medskip
\myFirstname\ \myFamilyname \\
\myPosition \\ \smallskip
\usekomavar*{fromphone}\usekomavar{fromphone}\\
\usekomavar*{fromemail}\usekomavar{fromemail}\\ \bigskip
\textbf{Geschäftskontakt:}\\ \medskip
\usekomavar{fromaddress} \\ \smallskip
\usekomavar*{fromurl}\usekomavar{fromurl}\\
\Letter\,\myCompanyMail
}
% to visualize the position and the size of address and location:
%\LoadLetterOption{visualize}
%\showfields{address,location}
\begin{document}
\begin{letter}{\textbf{Sample Addressee}\\
Sample Avenue 1\\
12345 Sampletown
}
\opening{Sehr geehrte Damen und Herren,}
\blindtext[3]
\closing{\raggedright Mit freundlichen Grüßen}
\end{letter}
\end{document}
There are two problems. First, the nextfoot just won't break after the rule even though firstfoot does quite nicely. The entire contents are kept on the exact same line no matter if I \linebreak, \vskip or \\ them.
The second problem is that once I remove the comment in line 118 \setkomavar{nexthead}{\usekomavar{firsthead}} in order to make the nexthead header to show I get the following error, which I don't quite understand:
LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.153 \end{letter}
I sincerely tried to find a solution in the documentation, but as a latex noob I can't make any sense of most of the parts that touch my topic. That's also why there isn't a real MWE. I really struggle to configure everything properly using all the scrlttr2 properties. Hope it's still alright and someone can point me to the right direction!




\textwidth. And should the footers have the same vertical positions? And which one? – esdd Apr 12 '18 at 09:24nextfootto have the same width and position (vertically as well as horizontally) as thefirstfoot. But (as @Paul Stanleys explains in his answer) I found the margins on the subsequent pages to be somewhat narrower than on the first page. To me it seems that none of the position commands like\@setplength{firstfootvpos}{260mm}work for the following pages. So I was not really sure, whether there is any room for adjustment there – pdresselhaus Apr 12 '18 at 10:04