summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gammas/gammas.cls
blob: ca9f93640bec44562522f637764f0d5f58b2b1de (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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%   Copyright of Matthias Bartelt, Benjamin Unger and Dominik Kern                                 %
%   email cf. website https://www.bibliothek.tu-chemnitz.de/ojs/index.php/GAMMAS/about/contact     %
%   This work may be distributed and/or modified under the                                         %
%   conditions of the LaTeX Project Public License version 1.3c                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     identification                                                               %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{gammas}[2020/09/22 v1.1 class definition for GAMM Archiv for Students]
\LoadClass[11pt, twoside, numbers=noenddot]{scrartcl}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     packages loaded by default                                                   %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% language and font packages
\RequirePackage[latin1,utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{lmodern} \normalfont %to load T1lmr.fd 
\DeclareFontShape{T1}{lmr}{bx}{sc} { <-> ssub * cmr/bx/sc }{}
\RequirePackage{fourier}
\RequirePackage[english]{babel}
\RequirePackage{microtype} 	% for improved spacing
\RequirePackage{anyfontsize}

% math packages and symbols
\RequirePackage{amssymb}
\RequirePackage[intlimits]{amsmath}
\RequirePackage{amsthm}
\RequirePackage{mathtools}
\RequirePackage{mathrsfs}
\RequirePackage{subdepth} % all subscripts at the same position

% graphics/color packages
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\definecolor{GAMMgreen}{RGB}{14,123,44}
\RequirePackage{tikz} 
\RequirePackage{pgfplots}
\pgfplotsset{compat=1.10}

% layout/formatting packages
\RequirePackage{geometry}
\geometry{a4paper, left=5cm, right=1.5cm, top=2cm, bottom=2.5cm, headheight=3cm}
\RequirePackage[automark,draft=false]{scrlayer-scrpage}	% for headers and footers
\RequirePackage{booktabs}	% for nice tables
\RequirePackage{enumitem}
\setitemize{parsep=0pt,itemsep=0pt}
\setenumerate{parsep=0pt,itemsep=0pt}
\setdescription{parsep=0pt,itemsep=0pt,labelindent=1em,font=\textit}
\RequirePackage[margin=10pt,font=small,labelfont=bf,labelsep=endash]{caption}

% lastpage can be referred to with this label instead of loading package lastpage
\AtEndDocument{%
	\label{LastPage}%
}

% Packages for units
\RequirePackage[binary-units=true]{siunitx}
\sisetup{%
	list-units = brackets,
	range-units = brackets,
	range-phrase = {-},
	per-mode=symbol
}  

% Packages for reviewing purposes
\RequirePackage[left,pagewise,switch]{lineno}

% Program codes and algorithms
\RequirePackage{listings}

% packages for conditional options
\RequirePackage{ifthen}

% linking packages
\RequirePackage[colorlinks,linkcolor=GAMMgreen,citecolor=GAMMgreen,urlcolor=black]{hyperref}
\RequirePackage[nameinlink]{cleveref}
\RequirePackage[babel]{csquotes}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     fix for linenumbers with ams environments                                    %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% from http://phaseportrait.blogspot.de/2007/08/lineno-and-amsmath-compatibility.html
\newcommand*\patchAmsMathEnvironmentForLineno[1]{%
  \expandafter\let\csname old#1\expandafter\endcsname\csname #1\endcsname
  \expandafter\let\csname oldend#1\expandafter\endcsname\csname end#1\endcsname
  \renewenvironment{#1}%
     {\linenomath\csname old#1\endcsname}%
     {\csname oldend#1\endcsname\endlinenomath}}% 
\newcommand*\patchBothAmsMathEnvironmentsForLineno[1]{%
  \patchAmsMathEnvironmentForLineno{#1}%
  \patchAmsMathEnvironmentForLineno{#1*}}%
\AtBeginDocument{%
\patchBothAmsMathEnvironmentsForLineno{equation}%
\patchBothAmsMathEnvironmentsForLineno{align}%
\patchBothAmsMathEnvironmentsForLineno{flalign}%
\patchBothAmsMathEnvironmentsForLineno{alignat}%
\patchBothAmsMathEnvironmentsForLineno{gather}%
\patchBothAmsMathEnvironmentsForLineno{multline}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     settings for the listing package                                             %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\definecolor{lstbackground}{RGB}{235,235,235}
\definecolor{lstcommand}{RGB}{0,100,0}
\AtBeginDocument{%
	\lstset{%
		basicstyle = \ttfamily\fontsize{9.5pt}{9.5pt}\selectfont,
		morecomment = [s][\color{green}]{\#},
		keywordstyle = \color{blue}\bfseries,			% Schluesselwoerte (if,int,...)
		commentstyle = \color{lstcommand}\emph,			% Kommentare
		stringstyle = \color{red},						% Strings
		%captionpos = bottom (b),						% Beschriftung bottom (b)
		backgroundcolor = \color{lstbackground},
		frame = tblr,									% Rahmen top (t),
		numberstyle = \tiny,
		stepnumber = 1,									% Schritweite
		numbersep = 5pt,
		breaklines = true,								% automatischer Zeilenumbruch
		tabsize = 3,
		showstringspaces = false,
		escapeinside = {(*@}{@*)},
		comment=[l]{\*},								% Einleitendes zeichen fuer Kommentare
	}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     compression of the bibliography                                              %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\AtBeginDocument{
	\let\oldbibliography\thebibliography
		\renewcommand{\thebibliography}[1]{%
		\footnotesize
		\oldbibliography{#1}%
		\setlength{\itemsep}{0pt}%
	}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     definitions of global variables                                              %
%            the definition with 'def' is a little bit tricky                                      %
%            but this is necessary                                                                 %
%            the small name is the command for the tex-file with one argument                      %
%            the capital name after the next 'def' is the argument defined in the tex-file         %
%            the last 'def' is the default ( simple empty )                                        %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\gammauthora#1{\def\GAMMAUTHORA{#1}} \def\GAMMAUTHORA{}
\def\gammauthorb#1{\def\GAMMAUTHORB{#1}} \def\GAMMAUTHORB{}
\def\gammauthorc#1{\def\GAMMAUTHORC{#1}} \def\GAMMAUTHORC{}
\def\gammauthord#1{\def\GAMMAUTHORD{#1}} \def\GAMMAUTHORD{}
\def\gammauthore#1{\def\GAMMAUTHORE{#1}} \def\GAMMAUTHORE{}
\def\gammauthorf#1{\def\GAMMAUTHORF{#1}} \def\GAMMAUTHORF{}

\def\gammauthoraorcid#1{\def\GAMMAUTHORAORCID{#1}} \def\GAMMAUTHORAORCID{}
\def\gammauthorborcid#1{\def\GAMMAUTHORBORCID{#1}} \def\GAMMAUTHORBORCID{}
\def\gammauthorcorcid#1{\def\GAMMAUTHORCORCID{#1}} \def\GAMMAUTHORCORCID{}
\def\gammauthordorcid#1{\def\GAMMAUTHORDORCID{#1}} \def\GAMMAUTHORDORCID{}
\def\gammauthoreorcid#1{\def\GAMMAUTHOREORCID{#1}} \def\GAMMAUTHOREORCID{}
\def\gammauthorforcid#1{\def\GAMMAUTHORFORCID{#1}} \def\GAMMAUTHORFORCID{}

\def\gammaddressa#1{\def\GAMMADDRESSA{#1}} \def\GAMMADDRESSA{}
\def\gammaddressb#1{\def\GAMMADDRESSB{#1}} \def\GAMMADDRESSB{}
\def\gammaddressc#1{\def\GAMMADDRESSC{#1}} \def\GAMMADDRESSC{}
\def\gammaddressd#1{\def\GAMMADDRESSD{#1}} \def\GAMMADDRESSD{}
\def\gammaddresse#1{\def\GAMMADDRESSE{#1}} \def\GAMMADDRESSE{}
\def\gammaddressf#1{\def\GAMMADDRESSF{#1}} \def\GAMMADDRESSF{}

\newcommand{\inst}[1]{\textsuperscript{\textit{#1}}}
\newcommand{\corauth}{\textsuperscript{,$\star$}}

\def\gammauthorhead#1{\def\GAMMAUTHORHEAD{#1}} \def\GAMMAUTHORHEAD{}
\def\gammcorrespondence#1{\def\GAMMCORRESPONDENCE{#1}} \def\GAMMCORRESPONDENCE{}

\def\gammsupervisor{\@ifnextchar[{\@gammsupervisors}{\@gammsupervisor}} 
\def\@gammsupervisor#1{\def\GAMMSUPERVISOR{#1}}
\def\@gammsupervisors[#1]#2{\@gammsupervisortext{#1}\def\GAMMSUPERVISOR{#2}}
\def\GAMMSUPERVISOR{}
\def\GAMMSUPERVISORTEXT{supervisor}
\newcommand{\@gammsupervisortext}[1]{%
	\ifthenelse{\equal{#1}{multiple}}%
		{\def\GAMMSUPERVISORTEXT{supervisors}}
		{}
	}

\def\gammotherpublication#1{\def\GAMMOTHERPUBLICATION{#1}} \def\GAMMOTHERPUBLICATION{}

\def\gammbibfilename#1{\def\GAMMBIBFILENAME{#1}} \def\GAMMBIBFILENAME{mybibfile}
\def\gammloadoptbiber#1{\def\GAMMLOADOPTBIBER{#1}} \def\GAMMLOADOPTBIBER{}
\def\gammbiberopt#1{\def\GAMMBIBEROPT{#1}} \def\GAMMBIBEROPT{}
\def\gammloadoptbibtex#1{\def\GAMMLOADOPTBIBTEX{#1}} \def\GAMMLOADOPTBIBTEX{}
\def\gammfinalmode#1{\def\GAMMFINALMODE{#1}} \def\GAMMFINALMODE{}
\def\gammtwocolumnmode#1{\def\GAMMTWOCOLUMNMODE{#1}} \def\GAMMTWOCOLUMNMODE{}

% definition for title this option must be set
\newcommand*{\gammtitle}[1]{\def\gammtitle{#1}}

% command for ORCiD - ORCiD logo is included by publisher
\newcommand{\orcid}[1]{\,\href{https://orcid.org/#1}{$\bigcirc$}\,}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     definitions of global environments                                           %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{gammabstract}{\indent\textbf{Abstract:}\begin{itshape}}{\end{itshape}\par}
\newenvironment{gammkeywords}{\indent\textbf{Keywords:}}{\par}
\newenvironment{gammacknowledgement}{\bigskip\indent\textbf{Acknowledgements:}}{\par}
\newenvironment{gammacode}{\bigskip\indent\hypertarget{gammasSec:codeAvailability}{\textbf{Code Availability:}}}{\par}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     definitions of the documentclass options                                     %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\@productionMode{false}
\def\@biber{false}
\def\@biberBackref{false}
\def\@bibtex{false}
\def\@twocolumn{true}


% bibtex vs biber
\gammloadoptbiber{true} % default, will be deleted for usebibtex
\DeclareOption{usebiber}{
	\def\@biber{true}
	\gammloadoptbiber{true} % evaluation happens after arguments are passed (near eof)
}
% if bibtex is set biber will be deleted
\DeclareOption{usebibtex}{
	\def\@bibtex{true}
	\gammloadoptbibtex{true} % evaluation happens after arguments are passed (near eof)
	\gammloadoptbiber{} % evaluation happens after arguments are passed (near eof)
}


% option correction more space around the the text 
% this does not scale the text it changes the papersize 
% this options sets also the backref option for biblatex
% and the linenumbers will be shown
% In additions, it marks badboxes
\gammbiberopt{true}
\gammfinalmode{} % evaluation happens after arguments are passed (near eof)
\overfullrule=5pt
\AtBeginDocument{%
	\linenumbers%
	\switchlinenumbers
}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                    pass options to class                                                         %
%                  - now auxilary macros (gammloadoptbiber, gammfinalmode) can be evaluated        %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\ProcessOptions\relax


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     definitions of the title page                                                %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\gammasHeader}{%
	\begin{center}%
			\ifthenelse{\equal{\@productionMode}{true}}{%
				% logo GAMMAS
				\parbox{2.5cm}{\includegraphics[width=\linewidth]{\gammalogo}}
				\hfill
				% title of the journal			
				\parbox{10cm}{%
					\centering \textbf{International Association}\\
					\textbf{of Applied Mathematics and Mechanics}\\
					\textbf{-- Archive for Students --}%
				}
				% logo GAMM juniors
				\hfill
				\parbox{2.5cm}{\includegraphics[width=\linewidth]{\gjlogo}}
				% set correct page number
				\setcounter{page}{\@gammpagenum}
			}{}
			\vspace*{3em}
			
			\begin{minipage}{.75\textwidth}%
				\begin{center}%
					{\LARGE \textbf{\gammtitle{}}\par}%
					\vspace{1cm}%
					\GAMMAUTHORA{}% 
					\ifx \GAMMAUTHORAORCID\empty%
					\else%
						\orcid{\GAMMAUTHORAORCID}
					\fi%
					\ifx\GAMMAUTHORB\empty%
					\else%
						, \GAMMAUTHORB{}%
							\ifx \GAMMAUTHORBORCID\empty%
							\else%
								\orcid{\GAMMAUTHORBORCID}
							\fi%
					\fi%
					\ifx\GAMMAUTHORC\empty% 
					\else%
						, \GAMMAUTHORC{}%
							\ifx \GAMMAUTHORCORCID\empty%
							\else%
								\orcid{\GAMMAUTHORCORCID}
							\fi%
					\fi%
					\ifx\GAMMAUTHORD\empty% 
					\else%
						, \GAMMAUTHORD{}%
							\ifx \GAMMAUTHORDORCID\empty%
							\else%
								\orcid{\GAMMAUTHORDORCID}
							\fi%
					\fi%
					\ifx\GAMMAUTHORE\empty% 
					\else%
						, \GAMMAUTHORE{}%
							\ifx \GAMMAUTHOREORCID\empty%
							\else%
								\orcid{\GAMMAUTHOREORCID}
							\fi%
					\fi%
					\ifx\GAMMAUTHORF\empty% 
					\else%
						, \GAMMAUTHORF{}%
							\ifx \GAMMAUTHORFORCID\empty%
							\else%
								\orcid{\GAMMAUTHORFORCID}
							\fi%
					\fi%
					\\\vspace{0.5cm}\par%
					\ifx\GAMMADDRESSA\empty% 
					\else%
						$^a$ \GAMMADDRESSA{}\\%
					\fi%
					\ifx\GAMMADDRESSB\empty% 
					\else%
						$^b$ \GAMMADDRESSB{}\\%
					\fi%
					\ifx\GAMMADDRESSC\empty% 
					\else%
						$^c$ \GAMMADDRESSC{}\\%
					\fi%
					\ifx\GAMMADDRESSD\empty% 
					\else%
						$^d$ \GAMMADDRESSD{}\\%
					\fi%
					\ifx\GAMMADDRESSE\empty% 
					\else%
						$^e$ \GAMMADDRESSE{}\\%
					\fi%
					\ifx\GAMMADDRESSF\empty% 
					\else%
						$^f$ \GAMMADDRESSF{}\\%
					\fi%
					\vspace{0.5cm}\par%
					\ifthenelse{\equal{\@productionMode}{true}}{%
					received \@receiveddate, accepted \@accepteddate, published \@publisheddate \par%
					}{}
				\end{center}%
				\rule{0.5\textwidth}{.4pt}\par%
				{\footnotesize * corresponding author: \GAMMCORRESPONDENCE}\par%
				\ifx\GAMMSUPERVISOR\empty% 
					\else%
						{\footnotesize \GAMMSUPERVISORTEXT: \GAMMSUPERVISOR}\par%
					\fi%
				\ifx\GAMMOTHERPUBLICATION\empty% 
					\else%
						{\footnotesize \GAMMOTHERPUBLICATION}\par%
					\fi%
			\end{minipage}%
			%\vspace{\baselineskip}%
		\end{center}%
		\rule{1\textwidth}{.4pt}\par%
		\vspace{1cm}%
}

\newcommand{\makegammhead}{%
	\setlength{\columnsep}{15pt}
	\ifthenelse{\equal{\@twocolumn}{true}}{%
		\twocolumn[\gammasHeader]
	}{%
		\gammasHeader
	}
	\thispagestyle{scrplain}%
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     redefine maketitle to show the new gammhead                                  %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
	\def\@maketitle{%
		\makegammhead
	}
\makeatother

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     set geometry of the manuscript                                               %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\ifx\GAMMFINALMODE\empty% if final mode off
	\geometry{paperheight=35.7cm, paperwidth=27cm, left=4.5cm, right=4.5cm, top=5cm, bottom=5.5cm, headheight=6cm}
\else%
	\geometry{paperheight=29.7cm, paperwidth=21cm, left=1.5cm, right=1.5cm, top=2cm, bottom=2.5cm, headheight=3cm}
\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                     definitions of header and footer                                             %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagestyle{scrheadings}
\renewcommand*{\titlepagestyle}{scrplain}
\clearscrheadfoot

\makeatletter
	\ihead[\href{http://www.gammas.gamm-juniors.de}{\texttt{www.gammas.gamm-juniors.de}}]{\today}
	\chead{\GAMMAUTHORHEAD{}}
	\ohead[\today]{\thepage}
	\ifoot[Preprint submitted to GAMM archive for students]{Preprint submitted to GAMMAS}
\makeatother

\AtBeginDocument{\pagestyle{scrheadings}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                    conditions for biber and bibtex                                               %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifx\GAMMLOADOPTBIBER\empty%
\else% for biber
	\emergencystretch=1em
	\RequirePackage[style=numeric, backend=biber,url=false, isbn=true, bibencoding=utf8]{biblatex}	%  block=ragged
	\newcommand{\setbib}[1]{\printbibliography}
	\newcommand{\setbiber}[1]{\bibliography{#1}}
	\ifx\GAMMBIBEROPT\empty%
	\else%
		\ExecuteBibliographyOptions{%
			backref = true,%
			backrefstyle=all+%
		}%
	\fi%
\fi

\ifx\GAMMLOADOPTBIBTEX\empty%
\else% for bibtex
	\RequirePackage[numbers,sort]{natbib}
	\newcommand{\setbib}[1]{\bibliographystyle{gammas}
	\begingroup
		\hypersetup{urlcolor=GAMMgreen} 
		\hbadness 10000\relax\bibliography{#1}
	\endgroup}%
	\newcommand{\setbiber}[1]{}%
\fi%

\AtBeginDocument{%
	\setbiber{\GAMMBIBFILENAME}%
}

\AtEndDocument{%
	\setbib{\GAMMBIBFILENAME}%
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                                                  %
%                    end                                                                           %
%                                                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\endinput