-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEIT.sty
131 lines (102 loc) · 3.25 KB
/
EIT.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
%
%
%
\ProvidesPackage{EIT-Title}[2017/01/29 v.01 by Matthias Jung]
\RequirePackage{geometry}
\geometry{
a4paper,
top=25.4mm,
left=25.4mm,
right=25.4mm,
bottom=25.4mm,
headsep=12.5mm,
footskip=12.5mm
}
% Line distance
\renewcommand{\baselinestretch}{1.20}
% set up unicode input:
\RequirePackage[utf8]{inputenc}
% set 8-bit font enconding
% see: http://tex.stackexchange.com/questions/664/why-should-i-use-usepackaget1fontenc
\RequirePackage[T1]{fontenc}
% Background image for title page
\RequirePackage{wallpaper}
% Breaking URLs
\RequirePackage{url}
% Header and footer
\RequirePackage{scrpage2}
\pagestyle{scrheadings}
\clearscrheadfoot
% Math packages
\RequirePackage{amsmath}
\RequirePackage{amsfonts, amssymb}
\RequirePackage{graphicx}
% Enable bold math with \pmb{...}
\RequirePackage{bm}
% Get correct links for url in bibliography
\RequirePackage[hidelinks]{hyperref}
% Balance columns on last page
\RequirePackage{flushend}
% Nice subfigures (a) and (b)
\RequirePackage[caption=false]{subfig}
% Get nice fractions as \nicefrac{1}{4}
\RequirePackage{nicefrac}
% Get compact lists with compactitem
\RequirePackage{paralist}
% Get nice tables
\RequirePackage{booktabs}
\RequirePackage{multirow}
\newcommand{\minitab}[2][c]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
\RequirePackage{tabularx}
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X}% raggedleft column X
\RequirePackage[detect-all]{siunitx}
\RequirePackage{threeparttable} % tables with footnotes
\RequirePackage{makecell}
\RequirePackage{stfloats} % allow double column table at the bottom
% Clever references that automatically add Figure, Equation, Table, etc.
\RequirePackage[capitalize]{cleveref}
% Other Packages:
\RequirePackage{graphicx}
\RequirePackage{paratype}
\RequirePackage{titlesec}
\RequirePackage{titling}
\RequirePackage[utf8]{inputenc}
\RequirePackage{color}
\RequirePackage{lastpage}
%%% END OF EIT PACKAGE INPUTS %%%
\ThisCenterWallPaper{1.0}{images/background-eit.pdf}
% Todo Command:
\newcommand{\todo}[1]{{\bf \color{tu-red}TODO: [{#1}]}}
% Cooperate Design TUK including PT-Sans:
\newcommand{\pt}{\usefont{T1}{PTSans-TLF}{m}{n}}
\newcommand{\ptc}{\usefont{T1}{PTSansCaption-TLF}{m}{n}}
\titleformat{\section}{\LARGE\color{tu-grey}\ptc}{\thesection}{1em}{}
\titleformat{\subsection}{\Large\color{tu-grey}\ptc}{\thesection}{1em}{}
\titleformat{\subsubsection}{\large\color{tu-grey}\ptc}{\thesection}{1em}{}
\definecolor{tu-grey}{RGB}{69,69,69}
\definecolor{tu-red}{RGB}{171,7,27}
\definecolor{tu-blue}{RGB}{0,74,124}
% Non-breakable hyphen
\newcommand{\hyph}{\mbox{-}}
% Assert value of reference [when used in images]
% Usage: \assertRefEqual{label}{expected number}
\newcommand{\assertRefEqual}[2]{%
\begingroup
\ifnum \pdfstrcmp{\ref{#1}}{#2\hbox{}} = 0
\relax
\else
\errmessage{Reference #1 expected to be #2, but got \ref{#1}}
\fi
\endgroup}
% Titel Generation:
\newcommand*{\subtitle}[1]{\gdef\@subtitle{#1}}
\newcommand*{\@subtitle}{}
\renewcommand*{\maketitle}{%
\thispagestyle{empty}
\vspace{2.5cm}
{\noindent\Huge\color{tu-grey}\ptc\@title\unskip\strut\par}
{\noindent\LARGE\color{tu-grey}\ptc\@subtitle\unskip\strut\par}
{\noindent\pt\color{tu-grey}\itshape\@author\unskip\strut\par}
\vspace{1cm}
}
\endinput