2

The KOMA-Script package scrletter by default typesets the word "Page" (or language-dependent equivalent) preceding the actual page number in the footer.

How may this behavior be disabled, in favor of typesetting simply an unlabelled number?


See related question for solution to this question for class scrlttr2.

0

1 Answer 1

3

You have to redefine \letterpagemark in the preamble to get the desired result.

\documentclass{scrartcl}
\usepackage{scrletter}
\usepackage{blindtext}% only for dummy text

\renewcommand*\letterpagemark{%
  \usekomafont{pagenumber}{\thepage}}

\begin{document}
\begin{letter}{Max}
\opening{Hello,}
\Blindtext
\closing{Bye}
\end{letter}
\end{document}

enter image description here

Another possibility would be

    \let\letterpagemark\pagemark

Then the same output of the page number will be used for the letter part and the other pages of the document. Note that a possible redefinition of \pagemark must be done before this line.


Explanation:

With KOMA-Script classes \pagemark serves to output the formatted page number. While the main KOMA-Script classes (scrartcl, scrreprt and scrbook) define \pagemark as

\newcommand*{%
  \pagemark
}{%
  {\usekomafont{pagenumber}{%
    \thepage}}}

the KOMA-Script letter class (scrlttr2) defines \pagemark as

\newcommand*{%
  \pagemark
}{%
  {\usekomafont{pagenumber}{%
    \pagename\nobreakspace
    \thepage}}}

So there will be the prefix \pagename in the output of the page number in KOMA-Script letters.

If package scrletter would redefine \pagemark to add the prefix, the output of the page number on non-letter pages would be changed, too. Therefore package scrletter defines \letterpagemark

\newcommand*{%
  \letterpagemark
}{%
  {\usekomafont{pagenumber}{%
    \pagename\nobreakspace
    \thepage}}}

and uses \let\pagemark\letterpagemark inside the letter part of the document.

3
  • Would it work as well simply to redefine \pagename to an empty value?
    – brainchild
    Jan 4, 2021 at 13:46
  • No. The \nobreakspace in the definition of \pagemark would shift the page number to the right.
    – esdd
    Jan 4, 2021 at 13:57
  • Minor comment: I was wondering why your reference to "the KOMA-Script letter class" does not use its name, namely scrlttr2. Wouldn't that be clearer/more specific? Of course, one could mention that it is the KOMA-Script letter class too. Feb 28, 2022 at 17:51

You must log in to answer this question.

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