-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathakdai.cls
150 lines (134 loc) · 3.91 KB
/
akdai.cls
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
% LaTeX Dokumentenklasse fόr die LNI Reihe der GI
%
% (C) 2002 Robert Tolksdorf
% Im Fall von Fragen zu dieser Dokumentenklasse wenden Sie sich bitte
% an mail@robert-tolksdorf.de
%
%
\ProvidesClass{akdai}[2004/13/07 v0.41, by Robert Tolksdorf, Berlin customized FZ 2015/10/24; Hamburg customized MZ 2020/07/28]
\newif\iflnienglish\lnienglishfalse
\DeclareOption{english}{\lnienglishtrue}
\ProcessOptions
% 10 pt
\LoadClass[11pt,a4paper,fleqn,abstract=true]{scrartcl}
% Blocksatz durch LaTeX-Default
% Satzspiegel
\setlength{\textheight}{222mm}
\setlength{\textwidth}{160mm}
\oddsidemargin0pt
\topmargin0pt
% Hyphenation
% Durch normale LaTeX-Parameter verhindert (\doublehyphendemerits)
% Title: Kopie aus article.cls mit anderem \thispagestyle
\renewcommand\maketitle{\par
\begingroup
\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}%
\if@twocolumn
\ifnum \col@number=\@ne
\@maketitle
\else
\twocolumn[\@maketitle]%
\fi
\else
\newpage
\global\@topnum\z@ % Prevents figures from going at top of page.
\@maketitle
\fi
\thispagestyle{empty}\@thanks
\endgroup
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\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
}
\def\@maketitle{%
\newpage
\null
\vskip 2em%
\begin{center}%
\let \footnote \thanks
{\fontsize{17.28}{20}\fontseries{b}\selectfont \@title \par}%
\vskip 1.5em%
{\fontsize{12}{14}\selectfont
\lineskip .5em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
\vskip 1\baselineskip%
\end{center}%
\par
}
% Abstract
\renewenvironment*{abstract}{%
\renewcommand{\abstractname}{Abstract}
\fontsize{9}{10}\selectfont
\quotation\noindent{\bfseries \abstractname:}%
}{\endquotation}
% Bildunterschriften
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
{\fontsize{9}{10}\selectfont
\sbox\@tempboxa{#1: #2}%
\ifdim \wd\@tempboxa >\hsize
#1: #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi}
\vskip\belowcaptionskip}
% gleichungen mit richtiger einrόckung
% fleqn-Option oben
\setlength{\mathindent}{1.5cm}
% listings mit richtiger einrόckung
\RequirePackage{verbatim}
\def\verbatim@processline{\hskip4ex\the\verbatim@line\par}
% Fussnoten mit 5cm Linie und richtiger Grφίe
\renewcommand\footnoterule{%
\kern-3\p@
\hrule\@width5cm
\kern2.6\p@}
\renewcommand\@makefntext[1]{%
\parindent 1em%
\noindent
\hb@xt@1.8em{\hss\@makefnmark}{\fontsize{10}{12}\selectfont#1}}
%
% Gemutmaίte Absatzeinzόge und Abstδnde
\parindent0pt
\parskip 1ex
% bibliography
\iflanguage{english}{\bibliographystyle{lni}}{\bibliographystyle{lnig}}
\renewenvironment{thebibliography}[1]
{%\def\refname{Literaturverzeichnis}
\section*{\refname}%
\bgroup\fontsize{10}{12}\selectfont
\list{\@biblabel{\@arabic\c@enumiv}}%
{ \settowidth\labelwidth{\hspace{2mm}\@biblabel{#1}}%
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist\egroup}
% numbering of figures by section
\@addtoreset{figure}{section}
\@namedef{thefigure}{\arabic{section}.\arabic{figure}}
\RequirePackage{url}