Why is the footer (containing the bank information) shifted down by parskip?
\documentclass[fontsize=12pt,
DIN, A4,
parskip=full, % removing this prevents the shift
]{scrlttr2}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[margin=20mm,
inner=25mm,
outer=20mm,
bottom=30mm,
]{geometry}
\usepackage{ebgaramond}
\usepackage{blindtext}
\setlength{\footskip}{10mm}
% set the pagemark (page x of y)
\renewcommand*\pagemark{%
\usekomafont{pagenumber}{\pagename~\thepage~von~\letterlastpage}%
}
\setkomavar{firstfoot}{\hfill\pagemark}
% create pagemark also on first page
\newcommand{\originalopening}{}
\let\originalopening\opening
\renewcommand{\opening}[1]{\originalopening{#1}\thispagestyle{plain}}
\KOMAoptions{fromalign=off,
pagenumber=botright,
}
\newkomavar[BIC]{BIC}
\setkomavar{firstfoot}{%
\hrule\vspace{0.5em}\noindent%
\usekomavar{frombank}~\usekomavar{frombank} \hfill Sparkasse Deutschland \hfill
\usekomavar*{BIC}~\usekomavar{BIC}}
% ===================================
\setkomavar{frombank}[IBAN]{DE98~1605~0000~7512~0130~19}
\setkomavar{BIC}{WELADED2PMB}
\setkomavar{toaddress}{Musterstraße 1}
\setkomavar{fromname}{Donald Duck \textit{&} Daisy Duck}
\setkomavar{fromaddress}{Am Geldspeicher 1, 12345 Entenhausen}
\begin{document}
\begin{letter}{Max Mustermann\Musterstraße 1\12345 Musterstadt}
\opening{Hello,}
\Blindtext
\closing{Mit freundlichen Grüßen}
\end{letter}
\end{document}
When I uncomment parskip=full the footer gets shifted up although there is no \par in the footer..
\hrule\vspace*{\dimexpr 0.5em-\parskip}\noindentor reset\parskiplocally. – Ulrike Fischer Apr 19 '23 at 15:11\noindentdid not work. I had tried that before. How do I reset\parskiplocally? Of course-\parskipdoes work but why is it even necessary? – mrCarnivore Apr 19 '23 at 15:14\parafter\hruleas part of\hruleitself? Is there no easy ways to prevent it without removing it again afterwards with-\parskip? – mrCarnivore Apr 19 '23 at 21:13\hruledoes not switch to horizontal mode. So the\noindentresults in switching to horizontal mode and therefore to start a new paragraph. IMHO: Using low level commands like\hrule,\hboxetc. is always dangerous, if you do not know, what you are doing. In LaTeX they should not be used as user commands. It is mostly recommended to use LaTeX user commands like\rule,\hrulefill,\mboxetc. – cabohah Apr 20 '23 at 09:33