-
Notifications
You must be signed in to change notification settings - Fork 2
/
quickreference.sty
84 lines (67 loc) · 2.46 KB
/
quickreference.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
% language settings
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
% algorithms
\usepackage[ruled,vlined]{algorithm2e}
\usepackage{algpseudocode}
% various math packages
\usepackage{amsmath,amsfonts,amssymb}
% self-defined itemize labels
\usepackage{enumerate,enumitem}
% changing head and foot lines
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyhead[L]{\textbf{Computational Intelligence in Games}\\Sanaz Mostaghim, Alexander Dockhorn, Christian Wustrau} %Kopfzeile links
\fancyhead[C]{} %zentrierte Kopfzeile
\fancyhead[R]{Summer 2019\\} %Kopfzeile rechts
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{28pt}
\fancypagestyle{plain}{%
\fancyhead[L]{\textbf{Computational Intelligence in Games}\\Sanaz Mostaghim, Alexander Dockhorn, Christian Wustrau} %Kopfzeile links
\fancyhead[C]{} %zentrierte Kopfzeile
\fancyhead[R]{Summer 2019\\} %Kopfzeile rechts
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength{\headheight}{28pt}
\setlength{\headsep}{0pt}}
%standard tablestyles
\usepackage{booktabs}
%additional columntypes
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%matrices with descriptions
\usepackage{blkarray}
%defining the pagebreak behavior
%\usepackage{titlesec}
%\newcommand{\sectionbreak}{\pagebreak[3]}
\newenvironment{absolutelynopagebreak}
{\par\nobreak\vfil\penalty0\vfilneg
\vtop\bgroup}
{\par\xdef\tpd{\the\prevdepth}\egroup
\prevdepth=\tpd}
%references to equations and algorithms
\usepackage{hyperref}
\hypersetup{
pdftitle={Computational Intelligence in Games - Quick Reference},
pdfsubject={Quick Reference},
pdfauthor={Sanaz Mostaghim, Alexander Dockhorn, Christian Wustrau},
colorlinks=false
}
%easier reference formatting
\usepackage{cleveref}
%adding todos
\usepackage{todonotes}
%captioned equations
\usepackage[singlelinecheck=false,format=plain,labelfont=bf,up,textfont=bf,up,justification=justified]{caption}
\DeclareCaptionType{equationfloat}[][List of Equations]
\captionsetup[equationfloat]{labelformat=empty}
%typesetting options
\setlength{\parindent}{0pt}
\renewcommand{\arraystretch}{1.45}
%additional math operators
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}