arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/proceedings_book.cls	2010-04-02 13:03:31.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/scrreprt-pro.cls	2010-04-02 02:52:22.000000000 +0200
@@ -1,183 +1,378 @@
 %%
-%% This is file `article.cls',
+%% This is file `scrreprt.cls',
 %% generated with the docstrip utility.
 %%
 %% The original source files were:
 %%
-%% classes.dtx  (with options: `article')
+%% scrclass.dtx  (with options: `scrreprt')
 %%
-%% This is a generated file.
+%% Copyright 1994-1996 Markus Kohm and Frank Neukam.
+%% All rights reserved. For further copyright information see the file
+%% readme.txt or liesmich.txt, and any other copyright indicated in this
+%% file.
+%%
+%% This file is part of the LaTeX2e KOMA-Script bundle.
+%% ----------------------------------------------------
+%%
+%% The KOMA-Script bundle 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.
+%%
+%% *******************************************************************
+%% Change of the original in one line. The original line is commented
+%% out, it is line number 812. The following line 813 is the new one.
+%% This was done by Andreas Klinkmueller 1997/05/08 .
+%% *******************************************************************
 %%
-%% Copyright 1993 1994 1995 1996 1997 1998 1999
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
-%%
-%% This file is part of the LaTeX2e system.
-%% ----------------------------------------
-%%
-%% It may be distributed under the terms of the LaTeX Project Public
-%% License, as described in lppl.txt in the base LaTeX distribution.
-%% Either version 1.0 or, at your option, any later version.
-%% \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
-%%   Lower-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
-%%   Digits        \0\1\2\3\4\5\6\7\8\9
-%%   Exclamation   \!     Double quote  \"     Hash (number) \#
-%%   Dollar        \$     Percent       \%     Ampersand     \&
-%%   Acute accent  \'     Left paren    \(     Right paren   \)
-%%   Asterisk      \*     Plus          \+     Comma         \,
-%%   Minus         \-     Point         \.     Solidus       \/
-%%   Colon         \:     Semicolon     \;     Less than     \<
-%%   Equals        \=     Greater than  \>     Question mark \?
-%%   Commercial at \@     Left bracket  \[     Backslash     \\
-%%   Right bracket \]     Circumflex    \^     Underscore    \_
-%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
-%%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesClass{proceedings_book}
-              [2000]
-\newcommand\@ptsize{}
+\ProvidesClass{scrreprt-pro}
+              [1996/02/25 v2.4 LaTeX2e KOMA
+               document class; with a mikroscopic change by
+	       Klinmueller 1997/05/08]
+\newcommand*\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
-\@titlepagefalse
-\if@compatibility\else
-\DeclareOption{a4paper}
-   {\setlength\paperheight {297mm}%
-    \setlength\paperwidth  {210mm}}
-\DeclareOption{a5paper}
-   {\setlength\paperheight {210mm}%
-    \setlength\paperwidth  {148mm}}
-\DeclareOption{b5paper}
-   {\setlength\paperheight {250mm}%
-    \setlength\paperwidth  {176mm}}
-\DeclareOption{letterpaper}
-   {\setlength\paperheight {11in}%
-    \setlength\paperwidth  {8.5in}}
-\DeclareOption{legalpaper}
-   {\setlength\paperheight {14in}%
-    \setlength\paperwidth  {8.5in}}
-\DeclareOption{executivepaper}
-   {\setlength\paperheight {10.5in}%
-    \setlength\paperwidth  {7.25in}}
-\DeclareOption{landscape}
-   {\setlength\@tempdima   {\paperheight}%
-    \setlength\paperheight {\paperwidth}%
-    \setlength\paperwidth  {\@tempdima}}
-\fi
-\if@compatibility
-  \renewcommand\@ptsize{0}
-\else
-\DeclareOption{10pt}{\renewcommand\@ptsize{0}}
-\fi
-\DeclareOption{11pt}{\renewcommand\@ptsize{1}}
-\DeclareOption{12pt}{\renewcommand\@ptsize{2}}
-\if@compatibility\else
+\@titlepagetrue
+\newif\if@openright
+\newif\if@hsl
+\newif\if@fsl
+\newif\if@abstrt
+\def\@BCOR{\@ifnextchar B{\@@BCOR}{\@DIV}}
+\def\@@BCOR B{\@ifnextchar C{\@@@BCOR}{\sc@TraceError B}}
+\def\@@@BCOR C{\@ifnextchar O{\@@@@BCOR}{\sc@TraceError BC}}
+\def\@@@@BCOR O{\@ifnextchar R{\@v@BCOR}{\sc@TraceError BCO}}
+\def\@v@BCOR R{\@ifnextchar .{\@vi@BCOR}
+               {\@ifnextchar 0{\@vi@BCOR}
+                {\@ifnextchar 1{\@vi@BCOR}
+                 {\@ifnextchar 2{\@vi@BCOR}
+                  {\@ifnextchar 3{\@vi@BCOR}
+                   {\@ifnextchar 4{\@vi@BCOR}
+                    {\@ifnextchar 5{\@vi@BCOR}
+                     {\@ifnextchar 6{\@vi@BCOR}
+                      {\@ifnextchar 7{\@vi@BCOR}
+                       {\@ifnextchar 8{\@vi@BCOR}
+                        {\@ifnextchar 9{\@vi@BCOR}
+                         {\sc@TraceError BCOR}}}}}}}}}}}}
+\def\@vi@BCOR#1|{\PassOptionsToPackage{BCOR#1}{typearea}}
+\def\@DIV{\@ifnextchar D{\@@DIV}{\sc@TraceError}}
+\def\@@DIV D{\@ifnextchar I{\@@@DIV}{\sc@TraceError D}}
+\def\@@@DIV I{\@ifnextchar V{\@@@@DIV}{\sc@TraceError DI}}
+\def\@@@@DIV V{\@ifnextchar 0{\@v@DIV}
+               {\@ifnextchar 1{\@v@DIV}
+                {\@ifnextchar 2{\@v@DIV}
+                 {\@ifnextchar 3{\@v@DIV}
+                  {\@ifnextchar 4{\@v@DIV}
+                   {\@ifnextchar 5{\@v@DIV}
+                    {\@ifnextchar 6{\@v@DIV}
+                     {\@ifnextchar 7{\@v@DIV}
+                      {\@ifnextchar 8{\@v@DIV}
+                       {\@ifnextchar 9{\@v@DIV}
+                        {\sc@TraceError DIV}}}}}}}}}}}
+\def\@v@DIV #1|{\PassOptionsToPackage{DIV#1}{typearea}}
+\def\sc@TraceError#1|{\OptionNotUsed}
+\DeclareOption{headsepline}{\PassOptionsToPackage{headinclude}{typearea}\@hsltrue}
+\DeclareOption{headnosepline}{\@hslfalse}
+\DeclareOption{footsepline}{\PassOptionsToPackage{footinclude}{typearea}\@fsltrue}
+\DeclareOption{footnosepline}{\@fslfalse}
+\DeclareOption{10pt}{\renewcommand*\@ptsize{0}}
+\DeclareOption{11pt}{\renewcommand*\@ptsize{1}}
+\DeclareOption{12pt}{\renewcommand*\@ptsize{2}}
 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
-\fi
 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
 \DeclareOption{draft}{\setlength\overfullrule{5pt}}
-\if@compatibility\else
 \DeclareOption{final}{\setlength\overfullrule{0pt}}
-\fi
 \DeclareOption{titlepage}{\@titlepagetrue}
-\if@compatibility\else
 \DeclareOption{notitlepage}{\@titlepagefalse}
-\fi
-\if@compatibility\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
 \DeclareOption{onecolumn}{\@twocolumnfalse}
-\fi
 \DeclareOption{twocolumn}{\@twocolumntrue}
 \DeclareOption{leqno}{\input{leqno.clo}}
 \DeclareOption{fleqn}{\input{fleqn.clo}}
 \DeclareOption{openbib}{%
   \AtEndOfPackage{%
-   \renewcommand\@openbib@code{%
+   \renewcommand*\@openbib@code{%
       \advance\leftmargin\bibindent
       \itemindent -\bibindent
       \listparindent \itemindent
       \parsep \z@
       }%
-   \renewcommand\newblock{\par}}%
+   \renewcommand*\newblock{\par}}%
 }
-\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
+\DeclareOption{abstracton}{\@abstrttrue}
+\DeclareOption{abstractoff}{\@abstrtfalse}
+\DeclareOption{pointednumber}
+  {\AtEndOfClass{\@altsecnumformattrue
+                 \global\let\@altsecnumformatfalse\relax
+                 \global\let\@altsecnumformattrue\relax}}
+\DeclareOption{pointlessnumber}
+  {\AtEndOfClass{\@altsecnumformatfalse
+                 \global\let\@altsecnumformatfalse\relax
+                 \global\let\@altsecnumformattrue\relax}}
+\DeclareOption{bigheading}
+  {\AtEndOfClass{
+    \def\chapterheadstartvskip{\vspace*{2.3\baselineskip}}
+    \def\chapterheadendvskip{\vspace{1.7\baselineskip}}
+    \let\size@part\Huge
+    \let\size@partnumber\huge
+    \let\size@chapter\huge
+    \let\size@section\Large
+    \let\size@subsection\large
+    \let\size@subsubsection\normalsize
+    \let\size@paragraph\normalsize
+    \let\size@subparagraph\normalsize}}
+\DeclareOption{normalheading}
+  {\AtEndOfClass{
+    \def\chapterheadstartvskip{\vspace*{2\baselineskip}}
+    \def\chapterheadendvskip{\vspace{1.5\baselineskip}}
+    \let\size@part\huge
+    \let\size@partnumber\huge
+    \let\size@chapter\LARGE
+    \let\size@section\Large
+    \let\size@subsection\large
+    \let\size@subsubsection\normalsize
+    \let\size@paragraph\normalsize
+    \let\size@subparagraph\normalsize}}
+\DeclareOption{smallheading}
+  {\AtEndOfClass{
+    \def\chapterheadstartvskip{\vspace*{1.8\baselineskip}}
+    \def\chapterheadendvskip{\vspace{1.3\baselineskip}}
+    \let\size@part\LARGE
+    \let\size@partnumber\LARGE
+    \let\size@chapter\Large
+    \let\size@section\large
+    \let\size@subsection\normalsize
+    \let\size@subsubsection\normalsize
+    \let\size@paragraph\normalsize
+    \let\size@subparagraph\normalsize}}
+\DeclareOption{liststotoc}
+  {\AtEndOfClass{%
+    \renewcommand*\lot@heading{\addsec{\listtablename}
+      \@mkboth{\listtablename}{\listtabelname}}
+    \renewcommand*\lof@heading{\addsec{\listfigurename}
+      \@mkboth{\listfigurename}{\listfigurename}}
+  }}
+\DeclareOption{bibtotoc}
+  {\AtEndOfClass{%
+    \renewcommand*\bib@heading{%
+  \addchap{\bibname}}
+  }}
+\DeclareOption{bibtotocnumbered}
+  {\AtEndOfClass{%
+    \renewcommand*\bib@heading{%
+  \chapter{\bibname}}
+  }}
+\DeclareOption{idxtotoc}
+  {\AtEndOfClass{%
+    \renewcommand*\idx@heading{%
+      \@makeschapterhead{\indexname}\@mkboth{\indexname}{\indexname}%
+      \addcontentsline{toc}{chapter}{\indexname}}%
+  }}
+\if@compatibility\else
+  \DeclareOption*{\expandafter\@BCOR\CurrentOption|}
+\fi
+\ExecuteOptions{11pt,onecolumn,final,headnosepline,footnosepline,bigheading,%
+oneside,openany,abstractoff}
 \ProcessOptions
 \input{size1\@ptsize.clo}
+\RequirePackage{typearea}[1996/02/25]
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
-\renewcommand\baselinestretch{}
+\renewcommand*\baselinestretch{}
 \setlength\parskip{0\p@ \@plus \p@}
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
 \setcounter{topnumber}{2}
-\renewcommand\topfraction{.7}
+\renewcommand*\topfraction{.7}
 \setcounter{bottomnumber}{1}
-\renewcommand\bottomfraction{.3}
+\renewcommand*\bottomfraction{.3}
 \setcounter{totalnumber}{3}
-\renewcommand\textfraction{.2}
-\renewcommand\floatpagefraction{.5}
+\renewcommand*\textfraction{.2}
+\renewcommand*\floatpagefraction{.5}
 \setcounter{dbltopnumber}{2}
-\renewcommand\dbltopfraction{.7}
-\renewcommand\dblfloatpagefraction{.5}
+\renewcommand*\dbltopfraction{.7}
+\renewcommand*\dblfloatpagefraction{.5}
+\if@compatibility
+  \newcommand*\headincludeon{\@hincltrue}
+  \newcommand*\headincludeoff{\@hinclfalse}
+  \newcommand*\headseplineon{\@hsltrue \@hincltrue}
+  \newcommand*\headseplineoff{\@hslfalse \@hinclfalse}
+  \newcommand*\footincludeon{\@fincltrue}
+  \newcommand*\footincludeoff{\@finclfalse}
+  \newcommand*\footseplineon{\@fsltrue \@fincltrue}
+  \newcommand*\footseplineoff{\@fslfalse \@finclfalse}
+\fi
 \if@twoside
-  \def\ps@headings{%
-      \let\@oddfoot\@empty\let\@evenfoot\@empty
-      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
-      \let\@mkboth\markboth
+ \def\ps@plain{\let\@mkboth\@gobbletwo
+  \def\@evenhead{}%
+  \def\@oddhead{}%
+  \def\@evenfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\thepage\hfil}}}}%
+  \def\@oddfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\hfil\thepage}}}}}
+ \def\ps@headings{\let\@mkboth\markboth
+  \def\@evenhead{\vbox{\hsize=\textwidth
+   \hb@xt@ \textwidth{{\headfont\leftmark\hfil}}%
+   \if@hsl \vskip 1.5\p@ \hrule \fi}}
+  \def\@oddhead{\vbox{\hsize=\textwidth
+   \hb@xt@ \textwidth{{\headfont\hfil\rightmark}}%
+   \if@hsl \vskip 1.5\p@ \hrule \fi}}
+  \def\@evenfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\thepage\hfil}}}}%
+  \def\@oddfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\hfil\thepage}}}}%
+  \def\chaptermark##1{%
+   \markboth {\ifnum \c@secnumdepth >\m@ne
+        \chaptermarkformat\fi
+        ##1}{}}%
     \def\sectionmark##1{%
-      \markboth {\MakeUppercase{%
-        \ifnum \c@secnumdepth >\z@
-          \thesection\quad
-        \fi
-        ##1}}{}}%
-    \def\subsectionmark##1{%
-      \markright {%
-        \ifnum \c@secnumdepth >\@ne
-          \thesubsection\quad
-        \fi
+    \markright {\ifnum \c@secnumdepth >\z@
+        \sectionmarkformat\fi
         ##1}}}
-\else
-  \def\ps@headings{%
-    \let\@oddfoot\@empty
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
-    \let\@mkboth\markboth
-    \def\sectionmark##1{%
-      \markright {\MakeUppercase{%
-        \ifnum \c@secnumdepth >\m@ne
-          \thesection\quad
-        \fi
-        ##1}}}}
-\fi
-\def\ps@myheadings{%
-    \let\@oddfoot\@empty\let\@evenfoot\@empty
-    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
-    \let\@mkboth\@gobbletwo
-    \let\sectionmark\@gobble
-    \let\subsectionmark\@gobble
-    }
+ \def\ps@myheadings{\let\@mkboth\@gobbletwo
+  \def\@evenhead{\vbox{\hsize=\textwidth
+   \hb@xt@ \textwidth{{\headfont\leftmark\hfil}}
+   \if@hsl \vskip 1.5\p@ \hrule \fi}}%
+  \def\@oddhead{\vbox{\hsize=\textwidth
+   \hb@xt@ \textwidth{{\headfont\hfil\rightmark}}
+   \if@hsl \vskip 1.5\p@ \hrule \fi}}%
+  \def\@evenfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\thepage\hfil}}}}%
+  \def\@oddfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\hfil\thepage}}}}%
+  \def\chaptermark##1{}
+  \def\sectionmark##1{}}
+\else
+ \def\ps@plain{\let\@mkboth\@gobbletwo
+  \def\@evenhead{}%
+  \def\@oddhead{}%
+  \def\@evenfoot{}%
+  \def\@oddfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\hfil\thepage\hfil}}}}}
+ \def\ps@headings{\let\@mkboth\markboth
+  \def\@evenhead{}%
+  \def\@oddhead{\vbox{\hsize=\textwidth
+   \hb@xt@ \textwidth{{\headfont\hfil\rightmark\hfil}}
+   \if@hsl \vskip 1.5\p@ \hrule \fi}}%
+  \def\@evenfoot{}%
+  \def\@oddfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\hfil\thepage\hfil}}}}%
+  \def\sectionmark##1{}
+  \def\chaptermark##1{\markright {\ifnum \c@secnumdepth >\m@ne
+      \chaptermarkformat\fi
+    ##1}}}
+ \def\ps@myheadings{\let\@mkboth\@gobbletwo
+  \def\@evenhead{}%
+  \def\@oddhead{\vbox{\hsize=\textwidth
+   \hb@xt@ \textwidth{{\headfont\hfil\rightmark\hfil}}
+   \if@hsl \vskip 1.5\p@ \hrule \fi}}%
+  \def\@evenfoot{}%
+  \def\@oddfoot{\vbox{\hsize=\textwidth
+   \if@fsl \hrule \vskip 3\p@ \fi
+   \hb@xt@ \textwidth{{\pnumfont\hfil\thepage\hfil}}}}%
+  \def\chaptermark##1{}%
+  \def\sectionmark##1{}}
+\fi
+\newcommand*{\@extratitle}{}
+\newcommand{\extratitle}[1]{\gdef\@extratitle{#1}}
+\newcommand*{\@titlehead}{}
+\newcommand{\titlehead}[1]{\gdef\@titlehead{#1}}
+\newcommand*{\@subject}{}
+\newcommand*{\subject}[1]{\gdef\@subject{#1}}
+\newcommand*{\@publishers}{}
+\newcommand{\publishers}[1]{\gdef\@publishers{#1}}
+\newcommand*{\@uppertitleback}{}
+\newcommand{\uppertitleback}[1]{\gdef\@uppertitleback{#1}}
+\newcommand*{\@lowertitleback}{}
+\newcommand{\lowertitleback}[1]{\gdef\@lowertitleback{#1}}
+\newcommand*{\@dedication}{}
+\newcommand{\dedication}[1]{\gdef\@dedication{#1}}
+\newcommand*{\next@tpage}{\clearpage\thispagestyle{empty}}
   \if@titlepage
-  \newcommand\maketitle{\begin{titlepage}%
+    \newcommand*\maketitle[1][1]{\begin{titlepage}%
+    \setcounter{page}{#1}
   \let\footnotesize\small
   \let\footnoterule\relax
   \let \footnote \thanks
-  \null\vfil
-  \vskip 60\p@
-  \begin{center}%
-    {\LARGE \@title \par}%
-    \vskip 3em%
-    {\large
-     \lineskip .75em%
-      \begin{tabular}[t]{c}%
+    \ifx\@extratitle\@empty \else
+        \noindent\@extratitle\next@tpage\cleardoublepage\thispagestyle{empty}
+    \fi
+    \ifx\@titlehead\@empty \else
+        \noindent\begin{minipage}[t]{\textwidth}
+        \@titlehead
+        \end{minipage}\par
+    \fi
+    \null\vfill
+    \begin{center}
+    \ifx\@subject\@empty \else
+        {\Large \@subject \par}
+        \vskip 3em
+    \fi
+    {\huge {\sectfont \@title \par}}
+    \vskip 3em
+    {\Large \lineskip 0.75em
+    \begin{tabular}[t]{c}
         \@author
-      \end{tabular}\par}%
-      \vskip 1.5em%
-    {\large \@date \par}%       % Set date in \large size.
+    \end{tabular}\par}
+    \vskip 1.5em
+    {\Large \@date \par}
+    \vskip \z@ \@plus3fill
+    {\Large \@publishers \par}
+    \vskip 3em
   \end{center}\par
   \@thanks
-  \vfil\null
-  \end{titlepage}%
+    \vfill\null
+    \if@twoside\next@tpage
+        \noindent\begin{minipage}[t]{\textwidth}
+        \@uppertitleback
+        \end{minipage}\par
+        \vfill
+        \noindent\begin{minipage}[b]{\textwidth}
+        \@lowertitleback
+        \end{minipage}
+    \fi
+    \ifx\@dedication\@empty \else
+        \next@tpage\null\vfill
+        {\centering \Large \@dedication \par}
+        \vskip \z@ \@plus3fill
+        \if@twoside \next@tpage\cleardoublepage \fi
+    \fi
+    \end{titlepage}
   \setcounter{footnote}{0}%
   \global\let\thanks\relax
   \global\let\maketitle\relax
@@ -185,19 +380,36 @@
   \global\let\@author\@empty
   \global\let\@date\@empty
   \global\let\@title\@empty
-  \global\let\title\relax
+    \global\let\@extratitle\@empty
+    \global\let\@titlehead\@empty
+    \global\let\@subject\@empty
+    \global\let\@publishers\@empty
+    \global\let\@uppertitleback\@empty
+    \global\let\@lowertitleback\@empty
+    \global\let\@dedication\@empty
   \global\let\author\relax
+    \global\let\title\relax
+    \global\let\extratitle\relax
+    \global\let\titlehead\relax
+    \global\let\subject\relax
+    \global\let\publishers\relax
+    \global\let\uppertitleback\relax
+    \global\let\lowertitleback\relax
+    \global\let\dedication\relax
   \global\let\date\relax
-  \global\let\and\relax
-}
+    \global\let\and\relax}
 \else
-\newcommand\maketitle{\par
+     \newcommand*\maketitle[1][1]{\par
+       \@tempcnta=#1\relax\ifnum\@tempcnta=1\else
+         \ClassWarning{scrreprt}
+                      {Optional argument of \string\maketitle\space ignored
+                       at\MessageBreak
+                       notitlepage-mode}\fi
   \begingroup
-    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+         \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
     \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
     \long\def\@makefntext##1{\parindent 1em\noindent
-            \hb@xt@1.8em{%
-                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
+                 \hb@xt@1.8em{\hss\@makefnmark}##1}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -212,110 +424,231 @@
     \thispagestyle{plain}\@thanks
   \endgroup
   \setcounter{footnote}{0}%
-%  \global\let\thanks\relax
-%  \global\let\maketitle\relax
-%  \global\let\@maketitle\relax
+       \let\thanks\relax
+       \let\maketitle\relax
+       \let\@maketitle\relax
   \global\let\@thanks\@empty
-%  \global\let\@author\@empty
-%  \global\let\@date\@empty
-%  \global\let\@title\@empty
-%  \global\let\title\relax
-%  \global\let\author\relax
-%  \global\let\date\relax
-%  \global\let\and\relax
-}
+       \global\let\@author\@empty
+       \global\let\@date\@empty
+       \global\let\@title\@empty
+       \global\let\@extratitle\@empty
+       \global\let\@titlehead\@empty
+       \global\let\@subject\@empty
+       \global\let\@publishers\@empty
+       \global\let\@uppertitleback\@empty
+       \global\let\@lowertitleback\@empty
+       \global\let\@dedication\@empty
+       \global\let\author\relax
+       \global\let\title\relax
+       \global\let\extratitle\relax
+       \global\let\titlehead\relax
+       \global\let\subject\relax
+       \global\let\publishers\relax
+       \global\let\uppertitleback\relax
+       \global\let\lowertitleback\relax
+       \global\let\dedication\relax
+       \global\let\date\relax
+       \global\let\and\relax}
+\fi
 \def\@maketitle{%
-  \newpage
+    \clearpage
+    \let\footnote\thanks
+    \ifx\@extratitle\@empty \else
+        \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi
+    \fi
+    \ifx\@titlehead\@empty \else
+        \noindent\begin{minipage}[t]{\textwidth}
+        \@titlehead
+        \end{minipage}\par
+    \fi
   \null
   \vskip 2em%
   \begin{center}%
-  \let \footnote \thanks
-    {\LARGE \@title \par}%
+    \ifx\@subject\@empty \else
+        {\Large \@subject \par}
+        \vskip 1.5em
+    \fi
+    {\huge \@title \par}%
     \vskip 1.5em%
-    {\large
+    {\Large
       \lineskip .5em%
       \begin{tabular}[t]{c}%
         \@author
       \end{tabular}\par}%
     \vskip 1em%
-    {\large \@date}%
+    {\Large \@date \par}%
+    \vskip \z@ \@plus 1em
+    {\Large \@publishers \par}
+    \ifx\@dedication\@empty \else
+        \vskip 2em
+        {\Large \@dedication \par}
+    \fi
   \end{center}%
   \par
-  \vskip 1.5em}
-\fi
-\setcounter{secnumdepth}{3}
+  \vskip 2em}
+\renewcommand*{\numberline}[1]{%
+  \hb@xt@\@tempdima{#1\if@altsecnumformat.\fi\hfil}}
+\newcommand*\chaptermark[1]{}
+\setcounter{secnumdepth}{2}
 \newcounter {part}
-\newcounter {section}
+\newcounter {chapter}
+\newcounter {section}[chapter]
 \newcounter {subsection}[section]
 \newcounter {subsubsection}[subsection]
 \newcounter {paragraph}[subsubsection]
 \newcounter {subparagraph}[paragraph]
-\renewcommand \thepart {\@Roman\c@part}
-\renewcommand \thesection {\@arabic\c@section}
-\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
-\renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
-\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
-\renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
-\newcommand\part{%
-   \if@noskipsec \leavevmode \fi
-   \par
-   \addvspace{4ex}%
-   \@afterindentfalse
+\renewcommand*\thepart          {\@Roman\c@part}
+\let\@thepart\thepart
+\newcommand*\@maybeasf{%
+  \ifx\@thepart\thepart\global\@altsecnumformattrue\fi}
+\renewcommand*\thechapter       {\@arabic\c@chapter}
+\renewcommand*\thesection       {\thechapter.\@arabic\c@section}
+\renewcommand*\thesubsection    {\thesection.\@arabic\c@subsection}
+\renewcommand*\thesubsubsection {\thesubsection.\@arabic\c@subsubsection}
+\renewcommand*\theparagraph     {\thesubsubsection.\@arabic\c@paragraph}
+\renewcommand*\thesubparagraph  {\theparagraph.\@arabic\c@subparagraph}
+\newcommand*\@chapapp{\chaptername}
+\newcommand\part{\cleardoublepage
+                 \thispagestyle{plain}%
+                 \if@twocolumn
+                     \onecolumn
+                     \@tempswatrue
+                   \else
+                     \@tempswafalse
+                 \fi
+                 \null\vfil
    \secdef\@part\@spart}
-
 \def\@part[#1]#2{%
-    \ifnum \c@secnumdepth >\m@ne
-      \refstepcounter{part}%
-      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}\@maybeasf%
+      \addcontentsline{toc}{part}{\thepart\if@altsecnumformat.\fi%
+        \hspace{1em}#1}%
     \else
       \addcontentsline{toc}{part}{#1}%
     \fi
-    {\parindent \z@ \raggedright
+    \chaptermark{}
+    {\centering
      \interlinepenalty \@M
      \normalfont
-     \ifnum \c@secnumdepth >\m@ne
-       \Large\bfseries \partname~\thepart
-       \par\nobreak
+     \ifnum \c@secnumdepth >-2\relax
+       \size@partnumber\sectfont\partformat
+       \par
+       \vskip 20\p@
      \fi
-     \huge \bfseries #2%
-     \markboth{}{}\par}%
-    \nobreak
-    \vskip 3ex
-    \@afterheading}
+     \size@part\sectfont #2\par}%
+    \@endpart}
 \def\@spart#1{%
-    {\parindent \z@ \raggedright
+    {\centering
      \interlinepenalty \@M
      \normalfont
-     \huge \bfseries #1\par}%
-     \nobreak
-     \vskip 3ex
-     \@afterheading}
+     \size@part\sectfont #1\par}%
+    \@endpart}
+\def\@endpart{\vfil\newpage
+              \if@twoside
+                \null%
+                \thispagestyle{empty}%
+                \newpage
+              \fi
+              \if@tempswa
+                \twocolumn
+              \fi}
+\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
+                    \thispagestyle{plain}%
+                    \global\@topnum\z@
+                    \@afterindentfalse
+                    \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
+                         \refstepcounter{chapter}%
+                         \typeout{\@chapapp\space\thechapter.}%
+                         \addcontentsline{toc}{chapter}%
+                                   {\protect\numberline{\thechapter}#1}%
+                    \else
+                      \addcontentsline{toc}{chapter}{#1}
+                    \fi
+                    \chaptermark{#1}%
+                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
+                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
+                    \if@twocolumn
+                      \@topnewpage[\@makechapterhead{#2}]%
+                    \else
+                      \@makechapterhead{#2}%
+                      \@afterheading
+                    \fi}
+\def\@makechapterhead#1{\chapterheadstartvskip%
+  {\size@chapter{\sectfont
+    \@hangfrom{\ifnum \c@secnumdepth >\m@ne%
+                  \chapterformat\fi}%
+              {\raggedsection \interlinepenalty \@M #1\par}}
+    \nobreak\chapterheadendvskip
+  }}
+\def\@schapter#1{\if@twocolumn
+                   \@topnewpage[\@makeschapterhead{#1}]%
+                 \else
+                   \@makeschapterhead{#1}%
+                   \@afterheading
+                 \fi}
+\def\@makeschapterhead#1{\chapterheadstartvskip%
+  {\parindent \z@ \raggedsection
+    \normalfont
+    \size@chapter\sectfont #1\par
+    \nobreak\chapterheadendvskip
+  }}
+\newcommand\addsec{\secdef\@addsec\@saddsec}
+\def\@addsec[#1]#2{\addcontentsline{toc}{section}{#1}
+ \if@twoside \@mkboth{#1}{}\else \@mkboth{#1}{#1}\fi \section*{#2}}
+\def\@saddsec#1{\section*{#1}\@mkboth{}{}}
+\newcommand\addchap{\if@openright\cleardoublepage\else\clearpage\fi
+                    \thispagestyle{plain}%
+                    \global\@topnum\z@
+                    \@afterindentfalse
+                    \secdef\@addchap\@saddchap}
+\def\@addchap[#1]#2{\typeout{#2}
+                    \addcontentsline{toc}{chapter}{#1}%
+                    \if@twoside\@mkboth{#1}{}\else\@mkboth{}{#1}\fi
+                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
+                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
+                    \if@twocolumn
+                         \@topnewpage[\@makeschapterhead{#2}]%
+                    \else
+                         \@makeschapterhead{#2}%
+                         \@afterheading
+                    \fi}
+\def\@saddchap#1{\@mkboth{}{}
+                 \if@twocolumn
+                      \@topnewpage[\@makeschapterhead{#1}]%
+                 \else
+                      \@makeschapterhead{#1}%
+                      \@afterheading
+                 \fi}
 \newcommand\section{\@startsection {section}{1}{\z@}%
                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
                                    {2.3ex \@plus.2ex}%
-                                   {\normalfont\Large\bfseries}}
+                         {\raggedsection\normalfont\size@section\sectfont}}
 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
-                                     {\normalfont\large\bfseries}}
+                         {\raggedsection\normalfont\size@subsection\sectfont}}
 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
-                                     {\normalfont\normalsize\bfseries}}
+                         {\raggedsection\normalfont\size@subsubsection\sectfont}}
 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                     {3.25ex \@plus1ex \@minus.2ex}%
                                     {-1em}%
-                                    {\normalfont\normalsize\bfseries}}
+                         {\raggedsection\normalfont\size@paragraph\sectfont}}
 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                        {3.25ex \@plus1ex \@minus .2ex}%
                                        {-1em}%
-                                      {\normalfont\normalsize\bfseries}}
+                         {\raggedsection\normalfont\size@subparagraph\sectfont}}
+\newcommand\minisec[1]{\@afterindentfalse \vskip 1.5ex
+                       {\parindent \z@ \raggedsection\sectfont #1\par\nobreak}%
+                       \@afterheading}
+\let\raggedsection\raggedright
 \if@twocolumn
   \setlength\leftmargini  {2em}
 \else
   \setlength\leftmargini  {2.5em}
 \fi
-\leftmargin  \leftmargini
 \setlength\leftmarginii  {2.2em}
 \setlength\leftmarginiii {1.87em}
 \setlength\leftmarginiv  {1.7em}
@@ -326,58 +659,43 @@
   \setlength\leftmarginv  {1em}
   \setlength\leftmarginvi {1em}
 \fi
+\setlength\leftmargin    {\leftmargini}
 \setlength  \labelsep  {.5em}
 \setlength  \labelwidth{\leftmargini}
 \addtolength\labelwidth{-\labelsep}
 \@beginparpenalty -\@lowpenalty
 \@endparpenalty   -\@lowpenalty
 \@itempenalty     -\@lowpenalty
-\renewcommand\theenumi{\@arabic\c@enumi}
-\renewcommand\theenumii{\@alph\c@enumii}
-\renewcommand\theenumiii{\@roman\c@enumiii}
-\renewcommand\theenumiv{\@Alph\c@enumiv}
-\newcommand\labelenumi{\theenumi.}
-\newcommand\labelenumii{(\theenumii)}
-\newcommand\labelenumiii{\theenumiii.}
-\newcommand\labelenumiv{\theenumiv.}
-\renewcommand\p@enumii{\theenumi}
-\renewcommand\p@enumiii{\theenumi(\theenumii)}
-\renewcommand\p@enumiv{\p@enumiii\theenumiii}
-\newcommand\labelitemi{\textbullet}
-\newcommand\labelitemii{\normalfont\bfseries \textendash}
-\newcommand\labelitemiii{\textasteriskcentered}
-\newcommand\labelitemiv{\textperiodcentered}
+\renewcommand*\theenumi{\@arabic\c@enumi}
+\renewcommand*\theenumii{\@alph\c@enumii}
+\renewcommand*\theenumiii{\@roman\c@enumiii}
+\renewcommand*\theenumiv{\@Alph\c@enumiv}
+\newcommand*\labelenumi{\theenumi.}
+\newcommand*\labelenumii{(\theenumii)}
+\newcommand*\labelenumiii{\theenumiii.}
+\newcommand*\labelenumiv{\theenumiv.}
+\renewcommand*\p@enumii{\theenumi}
+\renewcommand*\p@enumiii{\theenumi(\theenumii)}
+\renewcommand*\p@enumiv{\p@enumiii\theenumiii}
+\newcommand*\labelitemi{$\m@th\bullet$}
+\newcommand*\labelitemii{\normalfont\bfseries --}
+\newcommand*\labelitemiii{$\m@th\triangleright$}
+\newcommand*\labelitemiv{$\m@th\cdot$}
 \newenvironment{description}
                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                         \let\makelabel\descriptionlabel}}
                {\endlist}
-\newcommand*\descriptionlabel[1]{\hspace\labelsep
-                                \normalfont\bfseries #1}
-\if@titlepage
-  \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
-      \begin{center}%
-        \bfseries \abstractname
-        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
-\else
-  \newenvironment{abstract}{%
-      \if@twocolumn
-        \section*{\abstractname}%
-      \else
-        \small
-        \begin{center}%
-          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
-        \end{center}%
-        \quotation
-      \fi}
-      {\if@twocolumn\else\endquotation\fi}
-\fi
+\newcommand*{\descriptionlabel}[1]{\hspace\labelsep
+                                \descfont #1}
+\newenvironment{labeling}[2][]
+               {\def\sc@septext{#1}
+                \list{}{\settowidth{\labelwidth}{#2#1}
+                        \leftmargin\labelwidth \advance\leftmargin by \labelsep
+                        \let\makelabel\labelinglabel}}
+               {\endlist}
+\newcommand\labelinglabel[1]{#1\hfil\sc@septext}
 \newenvironment{verse}
-               {\let\\\@centercr
+               {\let\\=\@centercr
                 \list{}{\itemsep      \z@
                         \itemindent   -1.5em%
                         \listparindent\itemindent
@@ -386,7 +704,7 @@
                 \item\relax}
                {\endlist}
 \newenvironment{quotation}
-               {\list{}{\listparindent 1.5em%
+               {\list{}{\listparindent 1em%
                         \itemindent    \listparindent
                         \rightmargin   \leftmargin
                         \parsep        \z@ \@plus\p@}%
@@ -396,40 +714,53 @@
                {\list{}{\rightmargin\leftmargin}%
                 \item\relax}
                {\endlist}
-\if@compatibility
-\newenvironment{titlepage}
-    {%
-      \if@twocolumn
-        \@restonecoltrue\onecolumn
+\if@titlepage
+ \newenvironment{abstract}{%
+     \titlepage
+     \null\vfil
+     \@beginparpenalty\@lowpenalty
+     \if@abstrt
+     \begin{center}
+       \sectfont \abstractname
+       \@endparpenalty\@M
+     \end{center}\fi}
+    {\par\vfil\null\endtitlepage}
       \else
-        \@restonecolfalse\newpage
-      \fi
-      \thispagestyle{empty}%
-      \setcounter{page}\z@
-    }%
-    {\if@restonecol\twocolumn \else \newpage \fi
-    }
+ \newenvironment{abstract}{%
+     \if@twocolumn\if@abstrt
+       \section*{\abstractname}\fi%
 \else
+       \if@abstrt
+       \small
+       \begin{center}%
+         {\sectfont \abstractname\vspace{-.5em}\vspace{\z@}}%
+       \end{center}\fi%
+       \quotation
+     \fi}
+     {\if@twocolumn\else\endquotation\fi}
+\fi
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
         \@restonecolfalse\newpage
       \fi
       \thispagestyle{empty}%
-      \setcounter{page}\@ne
-    }%
+      \if@compatibility
+        \setcounter{page}{0}
+      \fi}%
     {\if@restonecol\twocolumn \else \newpage \fi
-     \if@twoside\else
-        \setcounter{page}\@ne
-     \fi
     }
-\fi
-\newcommand\appendix{\par
+\newcommand\marginline[1]{\marginpar%
+  {\if@twoside \ifodd\c@page \raggedright \else \raggedleft \fi
+   \else \raggedright \fi #1}}
+\newcommand*\appendix{\par\global\@altsecnumformattrue
+  \setcounter{chapter}{0}%
   \setcounter{section}{0}%
-  \setcounter{subsection}{0}%
-  \gdef\thesection{\@Alph\c@section}}
+  \renewcommand*\@chapapp{\appendixname}%
+  \renewcommand*\thechapter{\@Alph\c@chapter}}
 \setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
@@ -438,25 +769,32 @@
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
-\renewcommand \theequation {\@arabic\c@equation}
-\newcounter{figure}
-\renewcommand \thefigure {\@arabic\c@figure}
+\@addtoreset{equation}{chapter}
+\renewcommand*\theequation{%
+                          \thechapter.%
+                          \@arabic\c@equation}
+\newcounter{figure}[chapter]
+\renewcommand*\thefigure{%
+                        \thechapter.%
+                        \@arabic\c@figure}
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
-\def\fnum@figure{\figurename~\thefigure}
+\def\fnum@figure{\figureformat}
 \newenvironment{figure}
                {\@float{figure}}
                {\end@float}
 \newenvironment{figure*}
                {\@dblfloat{figure}}
                {\end@dblfloat}
-\newcounter{table}
-\renewcommand\thetable{\@arabic\c@table}
+\newcounter{table}[chapter]
+\renewcommand*\thetable{%
+                       \thechapter.%
+                       \@arabic\c@table}
 \def\fps@table{tbp}
 \def\ftype@table{2}
 \def\ext@table{lot}
-\def\fnum@table{\tablename~\thetable}
+\def\fnum@table{\tableformat}
 \newenvironment{table}
                {\@float{table}}
                {\end@float}
@@ -469,9 +807,10 @@
 \setlength\belowcaptionskip{0\p@}
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1: #2}%
+  \sbox\@tempboxa{{\caplabelfont #1\captionformat}{\capfont #2}}%
   \ifdim \wd\@tempboxa >\hsize
-    #1: #2\par
+%    \@hangfrom{{\caplabelfont #1\captionformat}}{\capfont #2\par}
+    {\caplabelfont #1\captionformat}{\capfont #2\par}
   \else
     \global \@minipagefalse
     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
@@ -484,71 +823,102 @@
 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
+\DeclareOldFontCommand{\sfb}{\normalfont\sffamily\bfseries}{\@nomath\sfb}
 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
-\newcommand\@pnumwidth{1.55em}
-\newcommand\@tocrmarg{2.55em}
-\newcommand\@dotsep{4.5}
-\setcounter{tocdepth}{3}
-\newcommand\tableofcontents{%
-    \section*{\contentsname
-        \@mkboth{%
-           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+\newcommand*\descfont{\sffamily\bfseries}
+\newcommand*\sectfont{\sffamily\bfseries}
+\newcommand*\pnumfont{\normalfont}
+\newcommand*\headfont{\slshape}
+\newcommand*\capfont{\normalfont}
+\newcommand*\caplabelfont{\normalfont}
+\newcommand*\@pnumwidth{1.55em}
+\newcommand*\@tocrmarg {2.55em}
+\newcommand*\@dotsep{4.5}
+\setcounter{tocdepth}{2}
+\newcommand*\toc@heading{\section*{\contentsname
+  \@mkboth{\contentsname}{\contentsname}}}
+\newcommand*\tableofcontents{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\contentsname
+        \@mkboth{\contentsname}{\contentsname}}%
     \@starttoc{toc}%
+    \if@restonecol\twocolumn\fi
     }
 \newcommand*\l@part[2]{%
   \ifnum \c@tocdepth >-2\relax
-    \addpenalty\@secpenalty
+    \addpenalty{-\@highpenalty}%
     \addvspace{2.25em \@plus\p@}%
     \begingroup
+      \setlength\@tempdima{3em}%
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
-       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+       \large \sectfont #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
        \nobreak
-       \if@compatibility
          \global\@nobreaktrue
          \everypar{\global\@nobreakfalse\everypar{}}%
-      \fi
     \endgroup
   \fi}
-\newcommand*\l@section[2]{%
-  \ifnum \c@tocdepth >\z@
-    \addpenalty\@secpenalty
-    \addvspace{1.0em \@plus\p@}%
+\newcommand*\l@chapter[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 1.0em \@plus\p@
     \setlength\@tempdima{1.5em}%
     \begingroup
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
-      \leavevmode \bfseries
+      \leavevmode \sectfont
       \advance\leftskip\@tempdima
       \hskip -\leftskip
       #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      \penalty\@highpenalty
     \endgroup
   \fi}
-\newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
-\newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
-\newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
-\newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
-\newcommand\listoffigures{%
-    \section*{\listfigurename
-      \@mkboth{\MakeUppercase\listfigurename}%
-              {\MakeUppercase\listfigurename}}%
+\newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
+\newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
+\newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
+\newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
+\newcommand*\lof@heading{\addsec{\listfigurename
+  \@mkboth{\listfigurename}{\listfigurename}}}
+\newcommand*\listoffigures{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listfigurename
+      \@mkboth{\listfigurename}%
+              {\listfigurename}}%
     \@starttoc{lof}%
+    \if@restonecol\twocolumn\fi
     }
 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
-\newcommand\listoftables{%
-    \section*{\listtablename
-      \@mkboth{%
-          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
+\newcommand*\lot@heading{\section*{\listtablename
+  \@mkboth{\listtablename}{\listtabelname}}}
+\newcommand*\listoftables{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listtablename
+      \@mkboth{\listtablename}{\listtablename}}%
     \@starttoc{lot}%
+    \if@restonecol\twocolumn\fi
     }
 \let\l@table\l@figure
+\newcommand*\bib@heading{%
+  \chapter*{\bibname
+    \@mkboth{\bibname}{\bibname}}}
 \newdimen\bibindent
-\setlength\bibindent{1.5em}
-\newenvironment{thebibliography}[1]
-     {\section*{\refname
-        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
+\bibindent=1.5em
+\newenvironment{thebibliography}[1]{\bib@heading%
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
@@ -556,17 +926,18 @@
             \@openbib@code
             \usecounter{enumiv}%
             \let\p@enumiv\@empty
-            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
-      \sloppy
-      \clubpenalty4000
-      \@clubpenalty \clubpenalty
-      \widowpenalty4000%
-      \sfcode`\.\@m}
+            \renewcommand*\theenumiv{\@arabic\c@enumiv}}%
+      \sloppy\clubpenalty4000\widowpenalty4000%
+      \sfcode`\.=\@m}
      {\def\@noitemerr
        {\@latex@warning{Empty `thebibliography' environment}}%
       \endlist}
-\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
+\newcommand*\newblock{\hskip .11em\@plus.33em\@minus.07em}
 \let\@openbib@code\@empty
+\newcommand*{\idx@heading}{%
+  \@makeschapterhead{\indexname}%
+  \@mkboth{\indexname}{\indexname}%
+}
 \newenvironment{theindex}
                {\if@twocolumn
                   \@restonecolfalse
@@ -575,43 +946,62 @@
                 \fi
                 \columnseprule \z@
                 \columnsep 35\p@
-                \twocolumn[\section*{\indexname}]%
-                \@mkboth{\MakeUppercase\indexname}%
-                        {\MakeUppercase\indexname}%
+                \twocolumn[\idx@heading]%
                 \thispagestyle{plain}\parindent\z@
                 \parskip\z@ \@plus .3\p@\relax
                 \let\item\@idxitem}
                {\if@restonecol\onecolumn\else\clearpage\fi}
-\newcommand\@idxitem{\par\hangindent 40\p@}
-\newcommand\subitem{\@idxitem \hspace*{20\p@}}
-\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
-\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
-\renewcommand\footnoterule{%
+\newcommand*\@idxitem  {\par\hangindent 40\p@}
+\newcommand*\subitem   {\@idxitem \hspace*{20\p@}}
+\newcommand*\subsubitem{\@idxitem \hspace*{30\p@}}
+\newcommand*\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
+\renewcommand*\footnoterule{%
   \kern-3\p@
   \hrule\@width.4\columnwidth
   \kern2.6\p@}
-\newcommand\@makefntext[1]{%
-    \parindent 1em%
-    \noindent
-    \hb@xt@1.8em{\hss\@makefnmark}#1}
-\newcommand\contentsname{Contents}
-\newcommand\listfigurename{List of Figures}
-\newcommand\listtablename{List of Tables}
-\newcommand\refname{References}
-\newcommand\indexname{Index}
-\newcommand\figurename{Figure}
-\newcommand\tablename{Table}
-\newcommand\partname{Part}
-\newcommand\appendixname{Appendix}
-\newcommand\abstractname{Abstract}
-\def\today{\ifcase\month\or
+\@addtoreset{footnote}{chapter}
+\newdimen\sc@temp
+\long\def\@makefntext#1{%
+  \noindent \sc@temp\columnwidth%
+  \advance\sc@temp by -1.5em%
+  \hb@xt@1em{\hss\@makefnmark}\hskip.5em%
+  \parbox[t]{\sc@temp}{\parindent\z@\parskip\z@\hskip-.5em #1}}
+\newcommand*\contentsname{Contents}
+\newcommand*\listfigurename{List of Figures}
+\newcommand*\listtablename{List of Tables}
+\newcommand*\bibname{Bibliography}
+\newcommand*\indexname{Index}
+\newcommand*\figurename{Figure}
+\newcommand*\tablename{Table}
+\newcommand*\partname{Part}
+\newcommand*\chaptername{Chapter}
+\newcommand*\appendixname{Appendix}
+\newcommand*\abstractname{Abstract}
+\newcommand*\today{\ifcase\month\or
   January\or February\or March\or April\or May\or June\or
   July\or August\or September\or October\or November\or December\fi
   \space\number\day, \number\year}
+\newif\if@altsecnumformat\@altsecnumformatfalse
+\AtEndDocument{\if@altsecnumformat\if@filesw
+    \immediate\write\@auxout{\string\global\string\@altsecnumformattrue}
+  \fi\fi}
+\newcommand*\chaptermarkformat    {\thechapter\if@altsecnumformat.\fi\quad}
+\newcommand*\sectionmarkformat    {\thesection\if@altsecnumformat.\fi\quad}
+\newcommand*\partformat    {\partname~\thepart\if@altsecnumformat.\fi\ }
+\newcommand*\chapterformat {\thechapter\if@altsecnumformat.\fi\ }
+\newcommand*\figureformat  {\figurename~\thefigure%
+  \if@altsecnumformat.\fi%
+  }
+\newcommand*\tableformat   {\tablename~\thetable%
+  \if@altsecnumformat.\fi%
+}
+\newcommand*\captionformat {:\ }
+\renewcommand*{\@seccntformat}[1]{%
+  \csname the#1\endcsname\if@altsecnumformat.\fi\quad}
 \setlength\columnsep{10\p@}
 \setlength\columnseprule{0\p@}
 \pagestyle{plain}
-\pagenumbering{arabic}
+\pagenumbering{arabic}      % Arabic page numbers
 \if@twoside
 \else
   \raggedbottom
@@ -625,4 +1015,4 @@
 \fi
 \endinput
 %%
-%% End of file `article.cls'.
+%% End of file `scrreprt.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns