summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrkpage.dtx')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkpage.dtx371
1 files changed, 169 insertions, 202 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx b/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
index 17db19b8eac..4e6162c07e9 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{592}
+% \CheckSum{511}
% \iffalse meta-comment
% ======================================================================
% scrkpage.dtx
@@ -58,7 +58,7 @@
%%% From File: scrkpage.dtx
%<*driver>
% \fi
-\ProvidesFile{scrkpage.dtx}[2007/01/03 v2.96a KOMA-Script (page style)]
+\ProvidesFile{scrkpage.dtx}[2007/09/25 v2.97c KOMA-Script (page style)]
% \iffalse
\documentclass[halfparskip-]{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -103,6 +103,8 @@
% \begin{option}{headsepline}
% \changes{v2.95c}{2006/08/11}{BugFix: Argument bei
% \cs{PassOptionsToPackage} vertauscht}
+% \changes{v2.97c}{2007/04/19}{Option \texttt{headinclude} wird nicht
+% mehr an \textsf{typearea} geschickt}
% \begin{option}{headnosepline}
% Der Kopfteil kann mit einer Linie vom Textbereich getrennt werden.
% \begin{macro}{\if@hsl}
@@ -124,9 +126,7 @@
\KOMA@set@ifkey{headsepline}{@hsl}{#1}%
\@ifpackageloaded{typearea}{%
\KOMAoptions{headinclude=#1}%
- }{%
- \PassOptionsToPackage{headinclude=#1}{typearea}%
- }%
+ }{}%
}
\KOMA@DeclareObsoleteOption[\PackageInfo]{headnosepline}{headsepline=false}
% \end{macrocode}
@@ -139,6 +139,8 @@
% die Paket-Angabe}
% \changes{v2.95c}{2006/08/11}{BugFix: Argument bei
% \cs{PassOptionsToPackage} vertauscht}
+% \changes{v2.97c}{2007/04/19}{Option \texttt{footinclude} wird nicht
+% mehr an \textsf{typearea} geschickt}
% \begin{option}{footnosepline}
% Der Fußteil kann mit einer Linie vom Textbereich getrennt werden.
% \begin{macro}{\if@fsl}
@@ -160,9 +162,7 @@
\KOMA@set@ifkey{footsepline}{@fsl}{#1}%
\@ifpackageloaded{typearea}{%
\KOMAoptions{footinclude=#1}%
- }{%
- \PassOptionsToPackage{footinclude=#1}{typearea}%
- }%
+ }{}%
}
\KOMA@DeclareObsoleteOption[\PackageInfo]{footnosepline}{footsepline=false}
% \end{macrocode}
@@ -179,6 +179,15 @@
%
% \subsection{Optionen und Anweisungen für leere Seiten}
%
+% \begin{macro}{\if@twoside}
+% \changes{v2.97c}{2007/07/18}{Schalter passend setzen}
+% Die Voreinstellung wird direkt passend gesetzt.
+% \begin{macrocode}
+%<article|report|letter>\@twosidefalse
+%<book>\@twosidetrue
+% \end{macrocode}
+% \end{macro}
+%
% \begin{option}{cleardoublepage}
% \changes{v2.95}{2004/08/24}{neuer Schalter}
% \changes{v2.96a}{2007/01/03}{Wert \texttt{current} sollte nun
@@ -374,6 +383,7 @@
% \changes{v2.8o}{2001/09/14}{neues Element \texttt{pagehead}}
% \begin{macro}{\scr@fnt@wrn@pagehead}
% \changes{v2.8o}{2001/09/14}{neue Warnung für Element \texttt{pagehead}}
+% \changes{v2.97c}{2007/09/25}{Warnung geändert}
% \begin{KOMAfont}{pagefoot}
% \changes{v2.8o}{2001/09/14}{neues Element \texttt{pagefoot}}
% Hier werden die Elemente definiert, deren Schriftart dann geändert
@@ -383,8 +393,8 @@
\aliaskomafont{pagination}{pagenumber}
\newcommand*{\scr@fnt@pagehead}{\headfont}
\newcommand*{\scr@fnt@wrn@pagehead}[1]{%
- font selection of elements `pagehead' and `pagefoot'\MessageBreak
- changed, because they are same%
+ `pagehead' and `pagefoot' are aliases for the same¸\MessageBreak
+ font element, changed%
}
\aliaskomafont{pagefoot}{pagehead}
% \end{macrocode}
@@ -408,219 +418,176 @@
% Zurück zur Definition der Seitenstile. Hier gibt es erhebliche Unterschiede
% zwischen der Briefklasse und den anderen Klassen. Das beginnt schon damit,
% dass es spezielle Stile für doppelseitige Briefe nicht gibt.
+% \changes{v2.1b}{1994/12/31}{im einseitigen Seitenstil \cs{markboth} durch
+% \cs{markright} ersetzt}
+% \changes{v2.2a}{1995/02/07}{im einseitigen Seitenstil bei \textsf{scrartcl}
+% und \texttt{oneside} \cs{subsectionmark} eingefügt}
+% \changes{v2.2a}{1995/02/07}{im einseitigen Seitenstil bei \textsf{scrreprt}
+% und \texttt{oneside} \cs{sectionmark} eingefügt}
+% \changes{v2.0e}{1994/08/17}{im einseitigen Seitenstil \cs{markboth} durch
+% \cs{markright} ersetzt}
+% \changes{v2.97c}{2007/07/18}{Unterscheidung auf \texttt{twoside} so spät wie
+% möglich}
+% Hinweis: Die \emph{even}-Varianten werden im einseitigen Satz vom
+% \LaTeX-Kern selbst nicht verwendet. Es schadet also nicht, sie trotzdem
+% identisch zum doppelseitigen Satz zu definieren.
% \begin{macrocode}
%<*!letter>
-\if@twoside
- \renewcommand*{\ps@plain}{%
- \renewcommand*{\@evenhead}{}%
- \renewcommand*{\@oddhead}{}%
- \renewcommand*{\@evenfoot}{%
- \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
- \renewcommand*{\@oddfoot}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\hfil\pagemark}}}}\hss}%
- }%
- \newcommand*{\ps@headings}{\let\@mkboth\markboth
- \renewcommand*{\@evenhead}{%
- \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
- \hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}%
- \if@hsl \vskip 1.5\p@ \hrule \fi}}}%
- \renewcommand*{\@oddhead}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark}}%
- \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
- \renewcommand*{\@evenfoot}{%
- \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
- \renewcommand*{\@oddfoot}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\hfil\pagemark}}}}\hss}%
+\renewcommand*{\ps@plain}{%
+ \renewcommand*{\@oddhead}{}%
+ \let\@evenhead\@oddhead
+ \renewcommand*{\@evenfoot}{%
+ \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
+ \if@fsl \hrule \vskip 3\p@ \fi
+ \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
+ \renewcommand*{\@oddfoot}{%
+ \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
+ \if@fsl \hrule \vskip 3\p@ \fi
+ \hb@xt@ \@tempdima{{\hfil\pagemark
+ \if@twoside\else\hfil\fi}}}}\hss}%
+}%
+\newcommand*{\ps@headings}{\let\@mkboth\markboth
+ \renewcommand*{\@evenhead}{%
+ \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
+ \hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}%
+ \if@hsl \vskip 1.5\p@ \hrule \fi}}}%
+ \renewcommand*{\@oddhead}{%
+ \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
+ \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark
+ \if@twoside\else\hfil\fi}}%
+ \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
+ \renewcommand*{\@evenfoot}{%
+ \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
+ \if@fsl \hrule \vskip 3\p@ \fi
+ \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
+ \renewcommand*{\@oddfoot}{%
+ \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
+ \if@fsl \hrule \vskip 3\p@ \fi
+ \hb@xt@ \@tempdima{{\hfil\pagemark
+ \if@twoside\else\hfil\fi}}}}\hss}%
%<*article>
- \renewcommand*{\sectionmark}[1]{%
- \markboth{\ifnum \c@secnumdepth >\z@%
- \sectionmarkformat\fi ##1}{}}%
- \renewcommand*{\subsectionmark}[1]{%
+ \renewcommand*{\sectionmark}[1]{%
+ \if@twoside\expandafter\markboth\else\expandafter\markright\fi
+ {\ifnum \c@secnumdepth >\z@%
+ \sectionmarkformat\fi ##1}{}}%
+ \renewcommand*{\subsectionmark}[1]{%
+ \if@twoside
\markright{\ifnum \c@secnumdepth >\@ne%
- \subsectionmarkformat\fi ##1}}%
+ \subsectionmarkformat\fi ##1}%
+ \fi
+ }%
%</article>
%<*report|book>
- \renewcommand*{\chaptermark}[1]{%
- \markboth{\ifnum \c@secnumdepth >\m@ne
-%<book> \if@mainmatter
- \chaptermarkformat
-%<book> \fi
- \fi
- ##1}{}%
- }%
- \renewcommand*{\sectionmark}[1]{%
+ \renewcommand*{\chaptermark}[1]{%
+ \if@twoside\expandafter\markboth\else\expandafter\markright\fi
+ {\ifnum \c@secnumdepth >\m@ne
+%<book> \if@mainmatter
+ \chaptermarkformat
+%<book> \fi
+ \fi
+ ##1}{}%
+ }%
+ \renewcommand*{\sectionmark}[1]{%
+ \if@twoside
\markright{\ifnum \c@secnumdepth >\z@
- \sectionmarkformat\fi
- ##1}}%
-%</report|book>
+ \sectionmarkformat\fi
+ ##1}%
+ \fi
}%
- \newcommand*{\ps@myheadings}{\let\@mkboth\@gobbletwo
- \renewcommand*{\@evenhead}{%
- \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
- \hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}%
- \if@hsl \vskip 1.5\p@ \hrule \fi}}}%
- \renewcommand*{\@oddhead}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark}}%
- \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
- \renewcommand*{\@evenfoot}{%
- \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
- \renewcommand*{\@oddfoot}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\hfil\pagemark}}}}\hss}%
-%<!article> \renewcommand*{\chaptermark}[1]{}%
-%<article> \renewcommand*{\subsectionmark}[1]{}%
- \renewcommand*{\sectionmark}[1]{}%
- }
-\else
+%</report|book>
+}%
+\newcommand*{\ps@myheadings}{\let\@mkboth\@gobbletwo
+ \renewcommand*{\@evenhead}{%
+ \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
+ \hb@xt@ \@tempdima{{\headfont\strut\leftmark\hfil}}%
+ \if@hsl \vskip 1.5\p@ \hrule \fi}}}%
+ \renewcommand*{\@oddhead}{%
+ \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
+ \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark
+ \if@twoside\else\hfil\fi}}%
+ \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
+ \renewcommand*{\@evenfoot}{%
+ \set@tempdima@hw\hss\hb@xt@ \@tempdima{\vbox{%
+ \if@fsl \hrule \vskip 3\p@ \fi
+ \hb@xt@ \@tempdima{{\pagemark\hfil}}}}}%
+ \renewcommand*{\@oddfoot}{%
+ \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
+ \if@fsl \hrule \vskip 3\p@ \fi
+ \hb@xt@ \@tempdima{{\hfil\pagemark
+ \if@twoside\else\hfil\fi}}}}\hss}%
+%<!article> \renewcommand*{\chaptermark}[1]{}%
+%<article> \renewcommand*{\subsectionmark}[1]{}%
+ \renewcommand*{\sectionmark}[1]{}%
+}
%</!letter>
- \renewcommand*{\ps@plain}{%
- \renewcommand*{\@oddhead}{%
%<*letter>
- \vbox{\vbox{\hsize=\textwidth\hbox to\textwidth{%
- \parbox[b]{\textwidth}{\strut
- \ifnum\@pageat>-1
- \ifnum\@pageat<3
- \ifcase\@pageat\raggedright\or\centering\or\raggedleft\fi
- \pagemark
- \else
- \hfill
- \fi
+\renewcommand*{\ps@plain}{%
+ \renewcommand*{\@oddhead}{%
+ \vbox{\vbox{\hsize=\textwidth\hbox to\textwidth{%
+ \parbox[b]{\textwidth}{\strut
+ \ifnum\@pageat>-1
+ \ifnum\@pageat<3
+ \ifcase\@pageat\raggedright\or\centering\or\raggedleft\fi
+ \pagemark
\else
\hfill
\fi
- }%
+ \else
+ \hfill
+ \fi
}%
- \if@hsl\kern1pt\rule{\textwidth}{.4pt}\fi
}%
+ \if@hsl\kern1pt\rule{\textwidth}{.4pt}\fi
}%
-%</letter>
}%
- \let\@evenhead\@oddhead%
- \renewcommand*{\@oddfoot}{%
-%<*letter>
- \parbox[t]{\textwidth}{%
- \if@fsl
- {%
- \raggedright%
- \vskip-\baselineskip\vskip.4pt
- \hrulefill\\
- }%
- \fi
- \ifnum\@pageat>2
- \ifcase\@pageat\or\or\or\raggedright\or\centering\or\raggedleft\fi
- \strut\pagemark
- \else
- \hfill
- \fi
- }%
-%</letter>
-%<*!letter>
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\hfil\pagemark\hfil}}}}\hss
-%</!letter>
+ }%
+ \let\@evenhead\@oddhead%
+ \renewcommand*{\@oddfoot}{%
+ \parbox[t]{\textwidth}{%
+ \if@fsl
+ {%
+ \raggedright%
+ \vskip-\baselineskip\vskip.4pt
+ \hrulefill\\
+ }%
+ \fi
+ \ifnum\@pageat>2
+ \ifcase\@pageat\or\or\or\raggedright\or\centering\or\raggedleft\fi
+ \strut\pagemark
+ \else
+ \hfill
+ \fi
}%
- \let\@evenfoot\@oddfoot
- }
- \newcommand*{\ps@headings}{\let\@mkboth\markboth
- \renewcommand*{\@oddhead}{%
-%<*letter>
- \vbox{%
- \vbox{\hsize=\textwidth\hbox to\textwidth{\headfont\@nexthead}}%
- \if@hsl\kern1pt\rule{\textwidth}{.4pt}\fi%
- }%
-%</letter>
-%<*!letter>
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark\hfil}}
- \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss
-%</!letter>
+ }%
+ \let\@evenfoot\@oddfoot
+}
+\newcommand*{\ps@headings}{\let\@mkboth\markboth
+ \renewcommand*{\@oddhead}{%
+ \vbox{%
+ \vbox{\hsize=\textwidth\hbox to\textwidth{\headfont\@nexthead}}%
+ \if@hsl\kern1pt\rule{\textwidth}{.4pt}\fi%
}%
- \let\@evenhead\@oddhead
- \renewcommand*{\@oddfoot}{%
-%<*letter>
- \parbox[t]{\textwidth}{%
- \if@fsl
- {%
- \raggedright%
- \vskip-\baselineskip\vskip.4pt
- \hrulefill\\
- }%
- \fi
- \vbox{\hsize=\textwidth\hbox to\textwidth{\headfont\@nextfoot}}%
- }%
+ }%
+ \let\@evenhead\@oddhead
+ \renewcommand*{\@oddfoot}{%
+ \parbox[t]{\textwidth}{%
+ \if@fsl
+ {%
+ \raggedright%
+ \vskip-\baselineskip\vskip.4pt
+ \hrulefill\\
+ }%
+ \fi
+ \vbox{\hsize=\textwidth\hbox to\textwidth{\headfont\@nextfoot}}%
}%
+ }%
+ \let\@evenfoot\@oddfoot
+}
+\newcommand*{\ps@myheadings}{%
+ \ps@headings
+ \let\@mkboth\@gobbletwo
+}
%</letter>
-%<*!letter>
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\hfil\pagemark\hfil}}}\hss}}%
-%<*article>
-% \end{macrocode}
-% \changes{v2.1b}{1994/12/31}{im einseitigen Seitenstil
-% \cs{markboth} durch \cs{markright} ersetzt}
-% \changes{v2.2a}{1995/02/07}{im einseitigen Seitenstil
-% bei \textsf{scrartcl} und \texttt{oneside} \cs{subsectionmark}
-% eingefügt}
-% \changes{v2.2a}{1995/02/07}{im einseitigen Seitenstil bei
-% \textsf{scrreprt} und \texttt{oneside} \cs{sectionmark}
-% eingefügt}
-% \begin{macrocode}
- \renewcommand*{\subsectionmark}[1]{}%
- \renewcommand*{\sectionmark}[1]{%
- \markright{\ifnum \c@secnumdepth >\z@\sectionmarkformat\fi
- ##1}}%
-%</article>
-% \end{macrocode}
-% \changes{v2.0e}{1994/08/17}{im einseitigen Seitenstil
-% \cs{markboth} durch \cs{markright} ersetzt}
-% \begin{macrocode}
-%<*report|book>
- \renewcommand*{\sectionmark}[1]{}%
- \renewcommand*{\chaptermark}[1]{%
- \markright{\ifnum \c@secnumdepth >\m@ne
-%<book> \if@mainmatter
- \chaptermarkformat
-%<book> \fi
- \fi
- ##1}}%
-%</report|book>
-%</!letter>
- \let\@evenfoot\@oddfoot
- }
- \newcommand*{\ps@myheadings}{%
-%<letter> \ps@headings
- \let\@mkboth\@gobbletwo
-%<*!letter>
- \renewcommand*{\@evenhead}{}%
- \renewcommand*{\@oddhead}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \hb@xt@ \@tempdima{{\headfont\hfil\strut\rightmark\hfil}}%
- \if@hsl \vskip 1.5\p@ \hrule \fi}}\hss}%
- \renewcommand*{\@evenfoot}{}%
- \renewcommand*{\@oddfoot}{%
- \set@tempdima@hw\hb@xt@ \@tempdima{\vbox{%
- \if@fsl \hrule \vskip 3\p@ \fi
- \hb@xt@ \@tempdima{{\hfil\pagemark\hfil}}}}\hss}%
-%<article> \renewcommand*{\subsectionmark}[1]{}%
-%<!article> \renewcommand*{\chaptermark}[1]{}%
- \renewcommand*{\sectionmark}[1]{}%
-%</!letter>
- }
-%<!letter>\fi
% \end{macrocode}
% \end{macro}
% \end{macro}