5

Have a Letter in scrlttr2. I cannot avoid/exclude the text before the page number 'Seite' (see print-screen). The official documentation recommends to add \pagenumbering{arabic}. But for my document, it has no effect.

enter image description here

%---------------------------------------------------------------------------
\documentclass%%
%---------------------------------------------------------------------------
  [fontsize=12pt,%%          Schriftgroesse
%---------------------------------------------------------------------------
% Satzspiegel
   paper=a4,%%               Papierformat
   enlargefirstpage=on,%%    Erste Seite anders
   pagenumber=footcenter,%%   Seitenzahl oben mittig
%---------------------------------------------------------------------------
% Layout
   headsepline=on,%%         Linie unter der Seitenzahl
   parskip=half,%%           Abstand zwischen Absaetzen
%---------------------------------------------------------------------------
% Formatierung
   draft=on%%                Entwurfsmodus
]{scrlttr2}
%---------------------------------------------------------------------------
\usepackage{german}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

%---------------------------------------------------------------------------
\begin{document}
%---------------------------------------------------------------------------
% Briefstil und Position des Briefkopfs
\LoadLetterOption{DIN} %% oder: DINmtext, SN, SNleft, KOMAold.
\makeatletter
\pagenumbering{arabic}

%---------------------------------------------------------------------------
% Seitenstil
\pagestyle{plain}%% keine Header in der Kopfzeile
%---------------------------------------------------------------------------
\begin{letter}{Herr\\
                Mustermann\\
               Straße 1\\
               12345 Stadt}
%---------------------------------------------------------------------------
\setkomavar{subject}{Beispielschreiben}
%---------------------------------------------------------------------------
\opening{Liebe Herr Mustermann,}

here is some Text.

\pagebreak

here is some Text.
%---------------------------------------------------------------------------
\end{letter}
%---------------------------------------------------------------------------
\end{document}
%---------------------------------------------------------------------------
  • Is there something special in your document, that it doesn't work? Can you show us a code example? – Johannes_B Feb 10 '15 at 20:29
  • Good example, few hints: -- Instead of loading package german, load \usepackage[ngerman]{babel}. -- Your makeatletter is a bit lonely there. -- DIN should is the default, no need to load it explicitely. – Johannes_B Feb 10 '15 at 21:04
5

Use

\renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}}

in your preamble. This removes \pagename\ (note the space) from the page numbering scheme.

enter image description here

\documentclass{scrlttr2}
\usepackage[german]{babel}
\usepackage{lipsum}
% Remove '\pagename\ ' from \pagemark
\renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}}
\begin{document}

\lipsum[1-10]

\end{document}
| improve this answer | |
  • Vielen Dank! :) – alex Feb 10 '15 at 21:17
  • The author of KOMA-Script suggested to use \newcommand* instead of \renewcommand here, but clearly, it must be the latter, as shown in this answer. Apart from that, the author proposed exactly the same solution. – caw Nov 15 '17 at 21:54

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.