-
Notifications
You must be signed in to change notification settings - Fork 0
/
gwa.sty
154 lines (128 loc) · 4.08 KB
/
gwa.sty
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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------------------------------
% Grundlagen Wissenschaftlichen Arbeitens - LaTeX Style File
% ------------------------------------------------------------------------
% File name: gwa.sty
% Author: Wilfried Elmenreich
% Modifications: Raimund Kirner (13.03.2006)
% Revision: 1.1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%----------------------------------------------------------------- ID ---
%
\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{gwa}
%
%------------------------------------------------------------ Packages --
%
\RequirePackage{times}
\RequirePackage{a4}
%
%--------------------------------------------------------- Page format --
%
\setlength{\topmargin}{-1.2cm}
\setlength{\textwidth}{16.5cm}
\setlength{\textheight}{23cm}
\setlength{\oddsidemargin}{0.3cm}
\setlength{\evensidemargin}{-0.6cm}
\setlength{\parindent}{3.5mm}
\setlength{\columnsep}{6mm}
\setlength{\hoffset}{0cm}
\def\kompakt{\setlength{\baselineskip}{.93\baselineskip}\setlength{\columnsep}{5.5mm}}
\renewcommand{\floatpagefraction}{0.9}
\renewcommand{\textfraction}{0.05}
\renewcommand{\topfraction}{1.0}
\renewcommand{\bottomfraction}{1.0}
%\DeclareOption{latex}{
%\setlength{\oddsidemargin}{1.1cm}
%\setlength{\evensidemargin}{0.1cm}}
%
%\DeclareOption{pdflatex}{
%\setlength{\oddsidemargin}{0.5cm}
%\setlength{\evensidemargin}{-0.5cm}}
%\ProcessOptions
%
%----------------------------------------- Caption and list formatting --
%
\def\section{\@startsection{section}{2}{0cm}{-1.5ex plus -.1ex minus
-.2ex}{1.5ex}{\large\sc}}
\def\subsection{\@startsection{subsection}{2}{0cm}{-1.5ex plus -.1ex minus
-.2ex}{1.5ex}{\normalsize\sc}}
%\renewcommand \thesection {\@Roman\c@section}
%\renewcommand\thesubsection {\@Alph\c@subsection}
\renewcommand\labelitemi{\normalfont\bfseries --}
\renewcommand\labelitemii{$\m@th\bullet$}
%
%----------------------------------------- Title and author formatting --
%
\def\affiliations#1{\gdef\@affiliations{#1}}
\def\inst#1{\unskip$^{#1}$}
\def\authN#1{{\large#1}}
\def\matNr#1{{\normalsize\/Matr.\# #1}}
\def\kennZ#1{{\normalsize\/Kennzahl #1}}
\def\authI#1{{\normalsize#1}}
\def\authU#1{{\normalsize#1}}
\def\email#1{{\tt\normalsize#1}}
\makeatletter
\makeatletter
\def\@maketitle{%
\newpage
\null
\vskip 4em%
\begin{center}%
\let \footnote \thanks
{\vskip -6em \LARGE \@title \par}%
\vskip 1.5em%
{\large
\lineskip .5em%
\begin{tabular}[t]{c}%
\@author
\end{tabular}\par}%
\vskip 1em%
{\normalsize \@date}%
\end{center}%
\par
\vskip 1em
}
%\bibliographystyle{unsrt}
\pagestyle{plain}
%
%---------------------------------------------------- Abstract command --
%
\newenvironment{absenv}{%
\list{}{\advance\topsep by0.35cm
\relax\small
\leftmargin=0cm
\labelwidth=\z@
\listparindent=0cm
\itemindent=0cm
\rightmargin\leftmargin
}\item[\hskip\labelsep
\bfseries Abstract] --- \em \setlength{\parskip}{0pt}}
\renewcommand{\abstract}[1]{
\begin{absenv}
#1
\end{absenv}
\vskip 1.5em
\thispagestyle{plain}}
%
%---------------------------------------------------- Abstract command --
%
\renewenvironment{thebibliography}[1]
{\section*{\refname}%
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\setlength{\parsep}{0em}
\setlength{\itemsep}{1pt}
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
% = eof ==================================================================