To print a footer with foot separation line at all pages but the first one, can for example use \setkomavar{nextfoot}{<footer definition>} and KOMA-Script option footsepline. But in this case note, that the foot line of the page style is specified to be a single line (inside horizontal box). So paragraphs, line breaks etc. won't work, unless you put them explicitly into a vertical box:
\documentclass[footsepline]{scrlttr2}
\renewcommand\familydefault{\sfdefault}
\usepackage{tgheros}
\setkomafont{pagefoot}{\footnotesize}
\setkomavar{nextfoot}{%
\parbox{\linewidth}{% because it seems you want so have line breaks using \
\usekomavar{subject} \hfill \usekomavar{fromname}
}%
}
\pagestyle{myheadings}
\usepackage{blindtext}% Note: Changed because Blindtext.sty cannot be found with case sensitive file names.
\begin{document}
\begin{letter}{recipient}
\setkomavar{subject}{Evaluation\ student}
\opening{Hello}
\Blindtext
\end{letter}
\end{document}
Alternatively you could set the page footer using the recommended KOMA-Script package scrlayer-scrpage as already shown before, e.g., in scrlttr2: make second page footer match first page footer.
Note from the KOMA-Script author: Package scrletter, resp. class scrletter, which is a wrapper for class scrartcl and package scrletter, are not affected by the restriction to one line headers and footers. So another alternative would be:
\documentclass[footsepline,manualmark,footlines=2]{scrletter}
\renewcommand\familydefault{\sfdefault}
\usepackage{tgheros}
\setkomafont{pagefoot}{\footnotesize}
\setkomavar{nextfoot}{%
\usekomavar{subject} \hfill \usekomavar{fromname}%
}
\renewcommand*{\letterpagestyle}{letter}
\usepackage{blindtext}% Note: Changed because Blindtext.sty cannot be found with case sensitive file names.
\begin{document}
\begin{letter}{recipient}
\setkomavar{subject}{Evaluation\\ student}
\opening{Hello}
\Blindtext
\end{letter}
\end{document}
firstfootandnextfootnot identical in my example? – mrCarnivore Apr 23 '23 at 14:51nextfootto display what I want. I only addedfirstfootto show whatnextfootshould look like... – mrCarnivore Apr 23 '23 at 21:08scrlayerfor that solution and that is not so nice when using an .lco file... So it works but not exactly as I want it to. But maybe that is impossible for whatever reason... – mrCarnivore Apr 24 '23 at 07:43\setkomavar{firstfoot}{…}, which is documented to be used on the first page??? Is is also documented, that variablenextfootis only used with pagestylemyheadingsorheadings(see e.g. table 4.1). Moreover, usingfanyhdrwould also be an extra package and even an extra package, that is not recommended with KOMA-Script classes (see the warning in the log file). So IMHO currently your question is completely unclear and your comments also do not make it clear. – cabohah Apr 24 '23 at 08:35fancyhdr. I just wanted to show what I have tried and lead to even more strange results. Like stated before I do not understand why the\hrulefillbreaks everything... – mrCarnivore Apr 24 '23 at 09:44\setkomavar{firstfoot}{…}? And if the footer of all pages but the first one should have a foot separation line why don't you use KOMA-Script's option for foot separation lines? And if I'm wrong and you want the same foot at all pages inclusive the first one, why don't you use one of the solutions either from the wiki or the already linked one? I don't see the sense. I think, I should stop here, because it seams I'm too stupid to understand you. Sorry. :( – cabohah Apr 24 '23 at 09:54firstfootbut notnextfoot... – mrCarnivore Apr 24 '23 at 10:05firstfootis printed on the first page not a s part of the page style but a part of the notepaper definition. – cabohah Apr 24 '23 at 10:14