diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrpage.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/koma-script/scrpage.dtx | 334 |
1 files changed, 118 insertions, 216 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrpage.dtx b/Master/texmf-dist/source/latex/koma-script/scrpage.dtx index 497989572aa..b8bc4393bcb 100644 --- a/Master/texmf-dist/source/latex/koma-script/scrpage.dtx +++ b/Master/texmf-dist/source/latex/koma-script/scrpage.dtx @@ -1,34 +1,42 @@ -% \CheckSum{2540} +% \CheckSum{2537} % \iffalse % ====================================================================== -% scrpage.dtx -% Copyright (C) 1995-2004 Markus Kohm +% scrpage.dtx +% Copyright (c) Markus Kohm, 1995-2006 +% +% This file is part of the LaTeX2e KOMA-Script bundle. +% +% This work may be distributed and/or modified under the conditions of +% the LaTeX Project Public License, version 1.3b of the license. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3b or later is part of all distributions of LaTeX +% version 2005/12/01 or later and of this work. % -% This file is part of the LaTeX2e KOMA-Script-Bundle +% This work has the LPPL maintenance status "author-maintained". % -% This file can be redistributed and/or modified under the terms -% of the LaTeX Project Public License Version 1.0 distributed -% together with this file. See LEGAL.TXT or LEGALDE.TXT. +% The Current Maintainer and author of this work is Markus Kohm. % -% This bundle is written specialy for use at german-language. So the -% main documentation is german. There is also a english documentation, -% but this is NOT up-to-date. +% This work consists of all files listed in manifest.txt. % ---------------------------------------------------------------------- % scrpage.dtx -% Copyright (C) 1995-2004 Markus Kohm +% Copyright (c) Markus Kohm, 1995-2006 % -% Diese Datei ist Teil des LaTeX2e KOMA-Script-Pakets. +% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz, +% Version 1.3b, verteilt und/oder veraendert werden. +% Die neuste Version dieser Lizenz ist +% http://www.latex-project.org/lppl.txt +% und Version 1.3b ist Teil aller Verteilungen von LaTeX +% Version 2005/12/01 oder spaeter und dieses Werks. % -% Diese Datei kann nach den Regeln der LaTeX Project Public -% Licence Version 1.0, wie sie zusammen mit dieser Datei verteilt -% wird, weiterverbreitet und/oder modifiziert werden. Siehe dazu -% auch LEGAL.TXT oder LEGALDE.TXT. +% Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained" +% (allein durch den Autor verwaltet). % -% Dieses Paket ist f"ur den deutschen Sprachraum konzipiert. Daher ist -% auch diese Anleitung komplett in Deutsch. Zwar existiert auch eine -% englische Version der Anleitung, diese hinkt der deutschen Anleitung -% jedoch fast immer hinterher. +% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm. +% +% Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien. % ====================================================================== +% \fi % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -46,164 +54,67 @@ % Grave accent \` Left brace \{ Vertical bar \| % Right brace \} Tilde \~} % +% \iffalse +%%% From File: scrpage.dtx %<*dtx> - \ProvidesFile{scrpage.dtx} +\ProvidesFile{scrpage.dtx} %</dtx> %<scrpage>\NeedsTeXFormat{LaTeX2e}[1995/06/01] %<driver> \ProvidesFile{scrpage.drv} %<*scrpage> -%<v1>\ProvidesPackage{scrpage}[2001/06/22 v1.3c KOMA +%<v1>\ProvidesPackage{scrpage}[2006/03/29 v1.3d KOMA-Script %<v2>\ProvidesPackage{scrpage2} %<*!v1> - [2004/09/05 v2.2a LaTeX2e KOMA + [2006/03/29 v2.2c LaTeX2e KOMA-Script %</!v1> -%<beta> BETA-VERSION %<scrpage> package] %<*driver> driver] -\documentclass{ltxdoc} -\usepackage{scrpage} -\usepackage[a4paper,DIV11]{typearea} -\addtolength{\oddsidemargin}{.75\marginparwidth} -\addtolength{\evensidemargin}{.75\marginparwidth} +\documentclass{scrdoc} +\usepackage{scrpage2} +\usepackage[german,english]{babel} +\usepackage[latin1]{inputenc} \CodelineIndex +\RecordChanges +\GetFileInfo{scrpage.dtx} +\title{The \textsf{KOMA}-pagestyle-package\thanks{This file has + version number \fileversion, last revised \filedate.}} +\renewpagestyle{headings}{(\textwidth,1pt)% + {\headmark\hfill}{\hfill\headmark}{\hfill\headmark\hfill}% + (\textwidth,.4pt)}% +{(\textwidth,.4pt)% + {\pagemark\hfill% + Copyright \copyright\ Markus Kohm, 1994--2002}% + {Package \texttt{scrpage}\hfill\pagemark}% + {\rlap{Package \texttt{scrpage}}\hfill% + Copyright \copyright\ Markus Kohm, 1994--2002\hfill% + \llap\pagemark}% + (\textwidth,1pt)} +\renewpagestyle{plain}{(\textwidth,1pt)% + {\hfill}{\hfill}{\hfill}% + (\textwidth,.4pt)}% +{(\textwidth,.4pt)% + {\pagemark\hfill}% + {\hfill\pagemark}% + {\hfill\pagemark\hfill}% + (\textwidth,1pt)} \pagestyle{headings} \begin{document} - \DocInput{scrpage.dtx} + \maketitle + \begin{abstract} + This is \texttt{scrpage.sty}. This obsolete package is part of the + \textsf{KOMA}-script-bundle. It defines a new user-interface for + pagestyle-definition. It's something like \texttt{fancyheadings} but not + the same. You may use \texttt{scrpage} or \texttt{fancyhdr}. You may + use \texttt{scrpage} with standard classes, too. Note: Package + \texttt{scrpage} was replaced by package \texttt{scrpage2}. The manual for + package \texttt{scrpage2} is part of the \KOMAScript{} guide. + \end{abstract} + \tableofcontents + \DocInput{scrpage.dtx} \end{document} %</driver> % \fi -% \GetFileInfo{scrpage.dtx} -% \RecordChanges -% -% \makeatletter -% \def\macro{\begingroup -% \catcode`\\12 -% \MakePrivateLetters \m@cro@ 0} -% \def\environment{\begingroup -% \catcode`\\12 -% \MakePrivateLetters \m@cro@ 1} -% \def\option{\begingroup -% \catcode`\\12 -% \MakePrivateLetters \m@cro@ 2} -% \long\def\m@cro@#1#2{\endgroup \topsep\MacroTopsep \trivlist -% \edef\saved@macroname{\string#2}% -% \ifcase #1% -% \edef\saved@@macroname{\expandafter\@gobble\saved@macroname} -% \or -% \edef\saved@@macroname{\expandafter\@gobble\saved@macroname} -% \else -% \let\saved@@macroname\saved@macroname -% \fi -% \def\makelabel##1{\llap{##1}}% -% \if@inlabel -% \let\@tempa\@empty \count@\macro@cnt -% \loop \ifnum\count@>\z@ -% \edef\@tempa{\@tempa\hbox{\strut}}\advance\count@\m@ne \repeat -% \edef\makelabel##1{\llap{\vtop to\baselineskip -% {\@tempa\hbox{##1}\vss}}}% -% \advance \macro@cnt \@ne -% \else \macro@cnt\@ne \fi -% \edef\@tempa{\noexpand\item[% -% \ifcase #1% -% \noexpand\PrintMacroName -% \or -% \noexpand\PrintEnvName -% \else -% \noexpand\PrintOptionName -% \fi -% {\string#2}]}% -% \@tempa -% {\advance\c@CodelineNo\@ne -% \ifcase #1% -% \SpecialMainIndex{#2}\nobreak -% \DoNotIndex{#2}% -% \or -% \SpecialMainEnvIndex{#2}\nobreak -% \else -% \SpecialMainOptionIndex{#2}\nobreak -% \fi -% }% -% \ignorespaces} -% \let\endoption\endtrivlist -% \@ifundefined{PrintOptionName} -% {\def\PrintOptionName#1{\strut \MacroFont #1\ }}{} -% \def\SpecialOptionIndex#1{\@bsphack -% \index{#1\actualchar{\protect\ttfamily#1} -% (option)\encapchar usage}% -% \index{options:\levelchar{\protect\ttfamily#1}\encapchar -% usage}\@esphack} -% \def\SpecialMainOptionIndex#1{\@bsphack\special@index{#1% -% \actualchar -% {\string\ttfamily\space#1} -% (option)\encapchar main}% -% \special@index{options:\levelchar{% -% \string\ttfamily\space#1}\encapchar% -% main}\@esphack} -% \def\changes@#1#2#3{% -% \protected@edef\@tempa{\noexpand\glossary{#1\levelchar -% \ifx\saved@macroname\@empty -% \space -% \actualchar -% \generalname -% \else -% \saved@@macroname -% \actualchar -% \string\verb\quotechar*\verbatimchar% -% \saved@macroname -% \verbatimchar -% \fi -% :\levelchar #3}}% -% \@tempa\endgroup\@esphack} -% \makeatother -% -% \title{The \textsf{KOMA}-pagestyle-package\thanks{This file has -% version number \fileversion, last revised \filedate.}} -% \author{Markus Kohm} -% \date{\filedate} -% \maketitle -% -% \def\oarg#1{{\ttfamily[}{\em#1\/}{\ttfamily]}} -% \def\arg#1{{\ttfamily\char`\{}{\em#1\/}{\ttfamily\char`\}}} -% \def\star{{\ttfamily*}} -% \makeatletter -% \def\Describe@Macro#1{\endgroup -% \setbox0=\lastbox\llap{\PrintDescribeMacro{#1}}}% -% \def\Describe@Env#1{\endgroup -% \setbox0=\lastbox\llap{\PrintDescribeEnv{#1}}}% -% \makeatother -% \marginparsep0pt -% \renewpagestyle{headings}{(\textwidth,1pt)% -% {\headmark\hfill}{\hfill\headmark}{\hfill\headmark\hfill}% -% (\textwidth,.4pt)}% -% {(\textwidth,.4pt)% -% {\pagemark\hfill% -% Copyright \copyright\ Markus Kohm, 1994--2002}% -% {Package \texttt{scrpage}\hfill\pagemark}% -% {\rlap{Package \texttt{scrpage}}\hfill% -% Copyright \copyright\ Markus Kohm, 1994--2002\hfill% -% \llap\pagemark}% -% (\textwidth,1pt)} -% \renewpagestyle{plain}{(\textwidth,1pt)% -% {\hfill}{\hfill}{\hfill}% -% (\textwidth,.4pt)}% -% {(\textwidth,.4pt)% -% {\pagemark\hfill}% -% {\hfill\pagemark}% -% {\hfill\pagemark\hfill}% -% (\textwidth,1pt)} -% \pagestyle{headings} -% -% \begin{abstract} -% This is \texttt{scrpage.sty}. This obsolete package is part of the -% \textsf{KOMA}-script-bundle. It defines a new user-interface for -% pagestyle-definition. It's something like \texttt{fancyheadings} -% but not the same. You may use \texttt{scrpage} or \texttt{fancyheadings}. -% You may use \texttt{scrpage} with standard classes, too. Note: Package -% \texttt{scrpage} was replaced by package \texttt{scrpage2}. -% \end{abstract} -% -% \tableofcontents % % \section{Introduction} % @@ -236,11 +147,12 @@ % \pagemark\\ % This is the number of the actual page written with |\pnumfont|. % -% \DescribeMacro -% \deftripstyle\arg{name}\oarg{olw}\oarg{ilw}% -% \arg{headleft}\arg{headmiddle}\arg{headright}% -% \arg{footleft}\arg{footmiddle}\arg{footright}\\ -% Defines a new pagestyle. You can activate this pagestyle using +% \DescribeMacro\deftripstyle +% \DescribeMacro\deftripstyle* +% The command \cs{deftripstyle}\marg{name}\oarg{olw}\oarg{ilw}% +% \marg{headleft}\marg{headmiddle}\marg{headright}% +% \marg{footleft}\marg{footmiddle}\marg{footright} +% defines a new pagestyle. You can activate this pagestyle using % |\pagestyle| or |\thispagestyle|. Without optional argument this defines a % page like this: % \begin{center}\unitlength1mm\begin{picture}(120,82) @@ -325,10 +237,9 @@ % You can change the standard pagestyle \texttt{headings} to. If you want to % change pagestyle \texttt{myheadings}, you should use the star-version of % the command:\\ -% \DescribeMacro -% \deftripstyle\star\arg{name}\oarg{olw}\oarg{ilw}% -% \arg{headleft}\arg{headmiddle}\arg{headright}% -% \arg{footleft}\arg{footmiddle}\arg{footright}\\ +% \cs{deftripstyle*}\marg{name}\oarg{olw}\oarg{ilw}% +% \marg{headleft}\marg{headmiddle}\marg{headright}% +% \marg{footleft}\marg{footmiddle}\marg{footright} % this defines a my-version pagestyle. This means, section- and % chapter-commands or perhaps |\tableofcontents| don't change the % marks. Only |\markboth| and |\markright| change them. But if you don't @@ -338,13 +249,14 @@ % % \subsection{Interface for experts} % -% \DescribeMacro -% \defpagestyle\arg{name}\arg{head-definition}\arg{foot-definition}\\ -% defines a new pagestyle \emph{name}. \emph{head-definition} defines the -% head at the new pagestyle. It contains five parts: +% \DescribeMacro\defpagestyle +% Command +% \cs{defpagestyle}\marg{name}\marg{head-definition}\marg{foot-definition} +% defines a new pagestyle \emph{name}. \emph{head-definition} defines the head +% at the new pagestyle. It contains five parts: % \begin{flushleft} % (\emph{toplinelength},\emph{toplinewidth})\\% -% \arg{evenpagehead}\arg{oddpagehead}\arg{onesidepagehead}\\% +% \marg{evenpagehead}\marg{oddpagehead}\marg{onesidepagehead}\\% % (\emph{headseplinelength},\emph{headseplinewidth})\\ % \end{flushleft} % These five parts have to be \textbf{one} argument! So you should put them @@ -352,23 +264,25 @@ % % \emph{foot-definition} analogous defines the foot at the new pagestyle. % -% \DescribeMacro -% \newpagestyle\arg{name}\arg{head-definition}\arg{foot-definition}\\ +% \DescribeMacro\newpagestyle +% Command +% \cs{newpagestyle}\marg{name}\marg{head-definition}\marg{foot-definition} % defines a real new pagestyle. If there's already a pagestyle named % \emph{name}, you'll get an error. Otherwise it's the same like % |\defpagestyle|. % -% \DescribeMacro -% \renewpagestyle\arg{name}\arg{head-definition}\arg{foot-definition}\\ -% redefines a old pagestyle. If there isn't a pagestyle named -% \emph{name}, you'll get an error. Otherwise it's the same like -% |\defpagestyle|. +% \DescribeMacro\renewpagestyle +% Command +% \cs{renewpagestyle}\marg{name}\marg{head-definition}\marg{foot-definition} +% redefines a old pagestyle. If there isn't a pagestyle named \emph{name}, +% you'll get an error. Otherwise it's the same like |\defpagestyle|. % -% \DescribeMacro -% \providepagestyle\arg{name}\arg{head-definition}\arg{foot-definition}\\ -% defines a new pagestyle, if it is realy new. If there is already a -% pagestyle named \emph{name}, it does nothing (but writing an info to -% the log file). Otherwise it's the same like |\defpagestyle|. +% \DescribeMacro\providepagestyle +% Command +% \cs{providepagestyle}\marg{name}\marg{head-definition}\marg{foot-definition} +% defines a new pagestyle, if it is realy new. If there is already a pagestyle +% named \emph{name}, it does nothing (but writing an info to the log +% file). Otherwise it's the same like |\defpagestyle|. % % You may use the user-interface-macros |\pagemark| and |\headmark|, too. % @@ -408,19 +322,6 @@ % \StopEventually{\PrintIndex\PrintChanges} % % \section{Implementation} -%\iffalse -% \begin{macrocode} -%<*beta> -\PackageWarningNoLine -%<v1> {scrpage} -%<v2> {scrpage2} - {THIS IS A BETA VERSION!\MessageBreak - YOU SHOULD NOT USE THIS VERSION!\MessageBreak - YOU SHOULD INSTALL THE RELEASE FROM CTAN\MessageBreak - AND USE THAT INSTEAD OF THIS BETA VERSION} -%</beta> -% \end{macrocode} -%\fi % % \begin{macrocode} %<*scrpage> @@ -1079,13 +980,14 @@ % \end{macrocode} % \end{macro} % \begin{macro}{\hf@rule} -% \changes{v1.3}{2001/03/30}{New, third parameter ``boxwidth''} -% \changes{v2.0f}{2001/06/23}{Rule can be adjusted at inner margine, -% centered or adjusted at outer margine} -% \changes{v2.2}{2004/07/05}{Last parameter of the rule tells, if it is a -% headabove, headbelow, footabove or footbelow rule} -% \changes{v2.2}{2005/07/05}{Precommands before the rules are allowed} -% \changes{v2.2}{2005/07/05}{Macro is not longer long} +% \changes{v1.3}{2001/03/30}{New, third parameter ``boxwidth''} +% \changes{v2.0f}{2001/06/23}{Rule can be adjusted at inner margine, +% centered or adjusted at outer margine} +% \changes{v2.2}{2004/07/05}{Last parameter of the rule tells, if it is a +% headabove, headbelow, footabove or footbelow rule} +% \changes{v2.2}{2005/07/05}{Precommands before the rules are allowed} +% \changes{v2.2}{2005/07/05}{Macro is not longer long} +% \changes{v2.2b}{2005/08/31}{No even alignment at oneside} % \begin{macrocode} %<!v2>\newcommand\hf@rule[3]{% %<v2>\newcommand*{\hf@rule}[4]{% @@ -1093,11 +995,15 @@ %<*v2> \begingroup \csname scr@pre@#4@line\endcsname - \ifodd\c@page - \edef\@tempa{\hfline@adjust} + \if@twoside + \ifodd\c@page + \edef\@tempa{\hfline@adjust}% + \else + \@tempcnta=2\advance\@tempcnta -\hfline@adjust + \edef\@tempa{\the\@tempcnta}% + \fi \else - \@tempcnta=2\advance\@tempcnta -\hfline@adjust - \edef\@tempa{\the\@tempcnta} + \edef\@tempa{\hfline@adjust}% \fi \ifnum\@tempa=1 %</v2> @@ -2568,9 +2474,6 @@ %</v2> % \end{macrocode} % -% \def\englishonly{} -% \input{scrlogo.dtx} -% % \subsection{End} % \begin{macrocode} %</scrpage> @@ -2581,8 +2484,7 @@ \endinput % % end of file `scrpage.dtx' - %%% Local Variables: -%%% mode: latex +%%% mode: doctex %%% Text-master: t %%% End: |