1
\documentclass{scrartcl}
\usepackage{lipsum}
\usepackage{scrletter}

\setkomavar{fromname}{Best son}
\setkomavar{backaddress}{Smaland 3, Childrentown}

\let\letterpagemark\pagemark

\setkomavar{firstfoot}{%
    \begin{tabular}{p{0.95\textwidth}p{0.05\textwidth}}
        a beautiful table & \pagemark/\letterlastpage\\
    \end{tabular}
}

\setkomavar{nextfoot}{\usekomavar{firstfoot}}

\begin{document}

\begin{letter}{Mom\\Parentstreet 1\\Hell}

\opening{Dear Mom,}

\lipsum[1-4]

\end{letter}
\end{document}

produces:

enter image description here

Why does \nextfoot not alter the appearance of footers on pages of number > 1? Due to reasons, I would prefer to have the same footer style on all pages of the document.

1 Answer 1

1

KOMA variable nextfoot would be used with page style letter. But the default page style for the second letter page is plain.letter. Therefore you see only the page number in footer of page 2.

You could redefine \letterpagestyle:

\setkomavar{nextfoot}{\usekomavar{firstfoot}}
\renewcommand*{\letterpagestyle}{letter}% default is `plain.letter`

or you could use

\setkomavar{nextfoot}{\usekomavar{firstfoot}}
\AtBeginLetter{\cfoot*{\usekomavar{nextfoot}}}

or

\AtBeginLetter{\cfoot*{\usekomavar{firstfoot}}}

But note that both the position and the width of the footer differ between the first letter page and the other pages. Also the font settings are different.

If the footer on all letter pages should be the same (including position, width and font), you could redefine the pair of page styles letter (i.e. style letter and its plain style plain.letter) and change the style of the first letter page to plain.letter (or its alias plain). Note that the default page style of the first letter page is empty, i.e. firstfoot and firsthead are not part of a page style.

\documentclass{scrartcl}
\usepackage{lipsum}
\usepackage{scrletter}

\setkomavar{fromname}{Best son}
\setkomavar{backaddress}{Smaland 3, Childrentown}

\let\letterpagemark\pagemark

\renewpairofpagestyles{letter}{%
  \clearpairofpagestyles
  \ifoot[text in inner footer]{}
  \ofoot*[\pagemark/\letterlastpage]{}
  \setkomafont{pagefoot}{\normalfont}%
  \KOMAoptions{footwidth=\useplength{firstfootwidth}}% change foot width for letter and plain.letter
}

% change vertical position of footer in style plain.letter:
\ForEachLayerOfPageStyle*{plain.letter}{%
  \Ifstrstart{#1}{plain.letter.foot}
     {\ModifyLayer[voffset={\useplength{firstfootvpos}}]{#1}}{}%
}
% the same can be done for page style letter (if this style is used too)

% use style plain.letter on first letter page, too
\newcommand*\originalopening{}
\let\originalopening\opening
\renewcommand*{\opening}[1]{%
  \originalopening{#1}%
  \thispagestyle{plain}% plain is an alias of plain.letter while page style pair letter is active
}
\KOMAoptions{firstfoot=false}% remove the default footer from first letter page

\begin{document}
\begin{letter}{Mom\\Parentstreet 1\\Hell}
\opening{Dear Mom,}
\lipsum[1-4]
\end{letter}
\end{document}

enter image description here

4
  • Thanks for your suggestions! I'm aware that I'm not the first one to request something like this. Could you please show how to do the vertical positioning with scrartcl? Couldn't figure it out.
    – tstone-1
    Commented Apr 24, 2021 at 17:58
  • Do you want to use the width and the position from the footer of the first page? Or the footer of the next pages?
    – esdd
    Commented Apr 25, 2021 at 21:57
  • Both position and size of the footer shown on the first page seem fine to me.
    – tstone-1
    Commented Apr 26, 2021 at 7:10
  • 1
    See my updated answer.
    – esdd
    Commented Apr 26, 2021 at 12:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .