有一封信scrlttr2
。我无法避免/排除页码“Seite”之前的文本(见打印屏幕)。官方文档建议添加\pagenumbering{arabic}
。但对于我的文档来说,它没有效果。
%---------------------------------------------------------------------------
\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}
%---------------------------------------------------------------------------
答案1
使用
\renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}}
在您的序言中。这会\pagename\
从页码方案中删除(请注意空格)。
\documentclass{scrlttr2}
\usepackage[german]{babel}
\usepackage{lipsum}
% Remove '\pagename\ ' from \pagemark
\renewcommand{\pagemark}{{\usekomafont{pagenumber}{\thepage}}}
\begin{document}
\lipsum[1-10]
\end{document}