I do not understand some of the features the nextfoot
variable has in the scrlttr2 KOMA-script class.
\documentclass[]{scrlttr2}
\pagestyle{headings}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\usepackage{polyglossia}
\setdefaultlanguage[babelshorthands=true]{german}
\usepackage{lipsum}
\begin{document}
\setkomafont{pagefoot}{\normalfont}
\setkomavar{nextfoot}{\hspace*{\fill}[Name]\qquad E-Mail: \texttt{[email protected]}\qquad Mobiltelefon: +49 123 45\,67\,89\hspace*{\fill}}
\setlength{\parskip}{1em}
\setlength{\parindent}{0pt}
\begin{letter}{Familie Mustermann}
\opening{Sehr geehrte Familie Mustermann,}
\lipsum
\closing{Mit freundlichen Grüßen}
\end{letter}
\end{document}
Why do I need the line
\setkomafont{pagefoot}{\normalfont}
and
\hspace*{\fill}
to get the desired output? Why is the footer text justified and set in italics by default? And where can I find these definitions? Is there a cleaner way of doing this?
Edit: And how do I get the page number back? Is using \thepage
OK?
\renewcommand{\thepage}{\arabic{page}}