1

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

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 define \pagemark as

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

the KOMA-Script letter class 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.

2
  • Would it work as well simply to redefine \pagename to an empty value? – epl Jan 4 at 13:46
  • No. The \nobreakspace in the definition of \pagemark would shift the page number to the right. – esdd Jan 4 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.