summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/akktex/source/akktex/classes/akkscript.cls
blob: 85407768e0105230be50a1eb9e3c2ba3e9bb0715 (plain)
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
%=====================================================================================================================================
% Class akkscript by Igor Akkerman (c) 2004, 2005
% Class for typesetting scripts.
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License (latest version).
%
% The latest version of this license can be found at
%     http://www.latex-project.org/lppl.txt
%
% This file may only be distributed together with the full 'AkkTeX' bundle.
%=====================================================================================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{akkscript}[2005/04/30 v1.0.0 by Igor Akkerman (c) 2004, 2005 Class for typesetting scripts.]
%=====================================================================================================================================

\makeatletter

% Initialisierungsteil
\RequirePackage{ifthen}
\RequirePackage{theorem}
\RequirePackage{akkconditional}

\AtBeginDocument{}

% Deklaration von Optionen
\DeclareOption{10pt}{\PassOptionsToClass{10pt}{book}}
\DeclareOption{11pt}{\PassOptionsToClass{11pt}{book}}
\DeclareOption{12pt}{\PassOptionsToClass{12pt}{book}}

% Ausfuehrung von Optionen
\ProcessOptions

% Laden von Paketen
\LoadClass[a4paper]{book}

\RequirePackage{ifthen}

\RequirePackage{lscape}
\RequirePackage{longtable}
\RequirePackage{theorem}
\RequirePackage{float}
\RequirePackage{enumerate}
\RequirePackage{verbatim}

\RequirePackage[longpage,widepage,twoside,intlimits]{akktex}

% ---------------------------------------------------------
% definition of the \maketitle command
% ---------------------------------------------------------
\newcommand \akk@subtitle {}
\newcommand \subtitle[1] {%
    \renewcommand \akk@subtitle {#1}%
}

\newcommand \akk@maketitle {%
    \begin{titlepage}%
        \let \footnotesize \small
        \let \footnoterule \relax
        \let \footnote \thanks
        \null\vfil
        \vskip 60\p@
        \akk@widepage@setorigvalues%
        \hspace*\fill
        \begin{minipage}{\akk@orig@textwidth}%
            \begin{center}%
                \begin{Huge}%
                    \bfseries%
                    \@title\makebox[0pt]{\phantom{Mg}}%
                    \\%
                \end{Huge}%
                \ifset{akk@subtitle} {%
                    \vspace{2ex}%
                    \begin{large}%
                        \akk@subtitle%
                        \\%
                    \end{large}%
                }
                \vspace{3ex}%
                \begin{Large}%
                    \bfseries%
                    \begin{tabular}[t]{c}%
                        \@author\makebox[0pt]{\phantom{Mg}}%
                    \end{tabular}%
                    \\%
                \end{Large}%
                \ifbooltrue{akk@datetitle} {%
                    \vspace{3ex}%
                    \begin{large}%\bfseries%
                        \@date\\%
                    \end{large}%
                }%
                \vspace{2ex}%
            \end{center}%
        \end{minipage}%
        \hspace*\fill
        \akk@widepage@setdefaultvalues%
        \par
        \@thanks
        \vfil\null
    \end{titlepage}%
    \setcounter{footnote}{0}%
    \global\let\thanks\relax
    \global\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
}
% ---------------------------------------------------------

% ---------------------------------------------------------
% theorem environments definition
% ---------------------------------------------------------
% needs to be defined here because it uses section numbers
% ---------------------------------------------------------
\theoremstyle{changebreak}

\theorembodyfont{\rmfamily\upshape}
\newtheorem      {definition}               {Definition} [section]
\newtheorem      {beispiel}    [definition] {Beispiel}
\newtheorem      {lemma}       [definition] {Lemma}
\newtheorem      {korollar}    [definition] {Korollar}
\newtheorem      {corollar}    [definition] {Corollar}
\newtheorem      {theorem}     [definition] {Theorem}
\newtheorem      {bemerkung}   [definition] {Bemerkung}
\newtheorem      {proposition} [definition] {Proposition}

\theorembodyfont {\rmfamily\itshape}
\newtheorem      {satz}        [definition] {Satz}
% ---------------------------------------------------------

\makeatother