1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
|
%%
%% This is file `scrpage.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% scrpage.dtx (with options: `scrpage')
%%
%% Copyright 1994-1996 Markus Kohm.
%% All rights reserved. For further copyright information see the file
%% legal.txt, and any other copyright indicated in this file.
%%
%% This file is part of the LaTeX2e KOMA-Script-bundle.
%% ----------------------------------------------------
%%
%% The KOMA-Script-bundle (but not this file) bases on the
%% Script-family created by Frank Neukam 1993 and the standard
%% documents classes created by the LaTeX3-Team 1994-1996.
%% -------------------------------------------------------------
%%
%% This system is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
%%
%%
%% IMPORTANT NOTICE:
%%
%% For error reports in case of UNCHANGED versions see documentation.
%%
%% Please do not request updates from us directly. Distribution is
%% done through Mail-Servers, Mailboxes and TeX organizations.
%%
%% You are not allowed to change this file.
%%
%% You are allowed to distribute this file under the condition that
%% it is distributed together with all files mentioned in readme.txt
%% and liesmich.txt.
%%
%% If you receive only some of these files from someone, complain!
%%
%% You are NOT ALLOWED to distribute this file alone. You are NOT
%% ALLOWED to take money for the distribution or use of either this
%% file or a changed version, except for a nominal charge for copying
%% etc.
%%
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{scrpage}
[1996/12/07 v1.2a LaTeX2e KOMA
package]
\DeclareOption{headinclude}{\PassOptionsToPackage{headinclude}{typearea}}
\DeclareOption{headexclude}{\PassOptionsToPackage{headexclude}{typearea}}
\DeclareOption{footinclude}{\PassOptionsToPackage{footinclude}{typearea}}
\DeclareOption{footexclude}{\PassOptionsToPackage{footexclude}{typearea}}
\ExecuteOptions{headinclude,footinclude}
\ProcessOptions
\newif\if@chapter
\ifx\chapter\undefined \@chapterfalse\else\@chaptertrue\fi
\def\@tempa{\newif\if@mainmatter\@mainmattertrue}
\ifx\mainmatter\undefined\else\let\@tempa\relax\fi
\@tempa
\let\headmark\relax
\DeclareRobustCommand\pagemark{{\pnumfont\thepage}}
\def\defpagestyle{%
\@ifstar
{\@defpagestyle[-]}%
{\@defpagestyle[+]}}
\if@twoside
\def\@defpagestyle[#1]#2#3#4{%
\expandafter\def\csname ps@#2\endcsname{%
\def\@tempa{+}%
\def\@tempb{#1}%
\ifx\@tempa\@tempb
\let\@mkboth\markboth
\if@chapter
\def\chaptermark####1{%
\markboth {\ifnum \c@secnumdepth >\m@ne%
\if@mainmatter\chaptermarkformat\fi\fi ####1}{%
\ifnum \c@secnumdepth >\m@ne%
\if@mainmatter\chaptermarkformat\fi\fi ####1}}%
\def\sectionmark####1{%
\markright {\ifnum \c@secnumdepth >\z@%
\sectionmarkformat\fi ####1}}
\else
\def\sectionmark####1{%
\markboth {\ifnum \c@secnumdepth >\z@%
\sectionmarkformat\fi ####1}{%
\ifnum \c@secnumdepth >\z@%
\sectionmarkformat\fi ####1}}
\def\subsectionmark####1{%
\markright {\ifnum \c@secnumdepth >\@ne%
\subsectionmarkformat\fi ####1}}
\fi
\else
\let\@mkboth\@gobbletwo
\if@chapter
\def\chaptermark####1{}
\else
\def\subsectionmark####1{}
\fi
\def\sectionmark####1{}
\fi
\def@twosidehead#3
\def@twosidefoot#4
}
}
\else
\def\@defpagestyle[#1]#2#3#4{%
\expandafter\def\csname ps@#2\endcsname{%
\def\@tempa{+}%
\def\@tempb{#1}%
\ifx\@tempa\@tempb
\let\@mkboth\markboth
\if@chapter
\def\chaptermark####1{%
\markright {\ifnum \c@secnumdepth >\m@ne%
\if@mainmatter\chaptermarkformat\fi\fi ####1}}%
\def\sectionmark####1{}
\else
\def\sectionmark####1{%
\markright{\ifnum \c@secnumdepth >\z@%
\sectionmarkformat\fi ####1}}
\def\subsectionmark####1{}
\fi
\else
\let\@mkboth\@gobbletwo
\if@chapter
\def\chaptermark####1{}
\else
\def\subsectionmark####1{}
\fi
\def\sectionmark####1{}
\fi
\def@onesidehead#3
\def@onesidefoot#4
}
}
\fi
\def\def@twosidehead(#1,#2)#3#4#5(#6,#7){
\def\@evenhead{\let\headmark\leftmark%
\vbox{\hsize=\textwidth
\hf@rule{#1}{#2}\vskip#2
\vskip\baselineskip\hb@xt@\textwidth{{\headfont\strut #3}}
\hf@rule{#6}{#7}
}}
\def\@oddhead{\let\headmark\rightmark%
\vbox{\hsize=\textwidth
\hf@rule{#1}{#2}\vskip#2
\vskip\baselineskip\hb@xt@\textwidth{{\headfont\strut #4}}
\hf@rule{#6}{#7}
}}
}
\def\def@onesidehead(#1,#2)#3#4#5(#6,#7){
\def\@evenhead{}
\def\@oddhead{\let\headmark\rightmark%
\vbox{\hsize=\textwidth
\hf@rule{#1}{#2}\vskip#2
\vskip\baselineskip\hb@xt@\textwidth{{\headfont\strut #5}}
\hf@rule{#6}{#7}
}}
}
\def\def@twosidefoot(#1,#2)#3#4#5(#6,#7){
\def\@evenfoot{\let\headmark\leftmark%
\vbox{\hsize=\textwidth
\topfoot@rule{#1}{#2}\hb@xt@\textwidth{{\headfont\strut #3}}
\botfoot@rule{#6}{#7}}}
\def\@oddfoot{\let\headmark\rightmark%
\vbox{\hsize=\textwidth
\topfoot@rule{#1}{#2}\hb@xt@\textwidth{{\headfont\strut #4}}
\botfoot@rule{#6}{#7}}}
}
\def\def@onesidefoot(#1,#2)#3#4#5(#6,#7){
\def\@evenfoot{}
\def\@oddfoot{\let\headmark\rightmark%
\vbox{\hsize=\textwidth
\topfoot@rule{#1}{#2}\hb@xt@\textwidth{{\headfont\strut #5}}
\botfoot@rule{#6}{#7}}}
}
\newcommand\topfoot@rule[2]{%
\@tempdima\baselineskip\advance\@tempdima by-.7\normalbaselineskip
\advance\@tempdima by -#2
\vskip\@tempdima\hf@rule{#1}{#2}\vskip-\@tempdima}
\newcommand\botfoot@rule[2]{%
\@tempdima-\baselineskip\advance\@tempdima by .3\normalbaselineskip
\advance\@tempdima by #2
\vskip\@tempdima\hf@rule{#1}{#2}}
\newcommand\hf@rule[2]{%
\@tempdimb#1
\hb@xt@\textwidth{\hfill%
\llap{\vrule\@depth#2\@height\z@\@width.5\@tempdimb}%
\rlap{\vrule\@depth#2\@height\z@\@width.5\@tempdimb}%
\hfill}}
\def\newpagestyle{%
\@ifstar
{\@newpagestyle[-]}%
{\@newpagestyle[+]}}
\def\@newpagestyle[#1]#2#3#4{
\expandafter\ifx\csname ps@#2\endcsname\relax
\@defpagestyle[#1]{#2}{#3}{#4}
\else
\PackageError{scrpage}{Your command was ignored}%
{There is already a pagestyle named ``#1''.\MessageBreak%
Use \protect\defpagestyle\space, \protect\renewpagestyle or
\protect\provide\pagestyle.}
\fi
}
\def\renewpagestyle{%
\@ifstar
{\@renewpagestyle[-]}%
{\@renewpagestyle[+]}}
\def\@renewpagestyle[#1]#2#3#4{
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname ps@#2\endcsname\relax
\PackageError{scrpage}{Your command was ignored}%
{There is no pagestyle named ``#1''.\MessageBreak%
Use \protect\defpagestyle, \protect\newpagestyle or
\protect\providepagestyle.}
\else
\@defpagestyle[#1]{#2}{#3}{#4}
\fi
}
\def\providepagestyle{%
\@ifstar
{\@providepagestyle[-]}%
{\@providepagestyle[+]}}
\def\@providepagestyle[#1]#2#3#4{
\expandafter\ifx\csname ps@#2\endcsname\relax
\@defpagestyle[#1]{#2}{#3}{#4}
\else
\PackageInfo{scrpage}{\protect\providepagestyle\protect{#1\protect}
ignored.}
\fi
}
\def\deftripstyle{%
\@ifstar
{\@deftripstyle[-]}%
{\@deftripstyle[+]}}
\def\@deftripstyle[#1]#2{%
\@ifnextchar[
{\@@deftripstyle[#1]{#2}}%
{\@@deftripstyle[#1]{#2}[\z@]}}
\def\@@deftripstyle[#1]#2[#3]{
\def\@tempa{#1}
\@ifnextchar[
{\@@@deftripstyle#2[#3]}%
{\@@@deftripstyle#2[\z@][#3]}}
\def\@@@deftripstyle#1[#2][#3]#4#5#6#7#8#9{%
\def\@tempb{+}
\ifx\@tempa\@tempb%
\defpagestyle{#1}%
{(\textwidth,#2)%
{\rlap{#6}\hfill{#5}\hfill\llap{#4}}%
{\rlap{#4}\hfill{#5}\hfill\llap{#6}}%
{\rlap{#4}\hfill{#5}\hfill\llap{#6}}%
(\textwidth,#3)}
{(\textwidth,#3)%
{\rlap{#9}\hfill{#8}\hfill\llap{#7}}%
{\rlap{#7}\hfill{#8}\hfill\llap{#9}}%
{\rlap{#7}\hfill{#8}\hfill\llap{#9}}%
(\textwidth,#2)}
\else
\defpagestyle*{#1}%
{(\textwidth,#2)%
{\rlap{#6}\hfill{#5}\hfill\llap{#4}}%
{\rlap{#4}\hfill{#5}\hfill\llap{#6}}%
{\rlap{#4}\hfill{#5}\hfill\llap{#6}}%
(\textwidth,#3)}
{(\textwidth,#3)%
{\rlap{#9}\hfill{#8}\hfill\llap{#7}}%
{\rlap{#7}\hfill{#8}\hfill\llap{#9}}%
{\rlap{#7}\hfill{#8}\hfill\llap{#9}}%
(\textwidth,#2)}
\fi
}
\providecommand\pnumfont{\normalfont}
\providecommand\headfont{\normalfont}
\if@chapter
\providecommand\chaptermarkformat {\thechapter\quad}
\providecommand\sectionmarkformat {\thesection\quad}
\else
\providecommand\sectionmarkformat {\thesection\quad}
\providecommand\subsectionmarkformat {\thesubsection\quad}
\fi
\InputIfFileExists{scrpage.cfg}
{\typeout{*************************************^^J%
* Local config file scrpage.cfg used^^J%
*************************************}}
{}
\endinput
%%
%% End of file `scrpage.sty'.
|