-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.tex
124 lines (117 loc) · 2.77 KB
/
setup.tex
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
%% setup.tex
%% Copyright 2020 Michael Jendrusch
\usepackage{pdfpages}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage{fancyhdr}
\pagestyle{fancy}
\pagestyle{plain}
\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\thepage}
\rfoot{}
\usepackage[english]{babel}
\usepackage[babel=true]{csquotes}
\usepackage[T1]{fontenc}
\usepackage[explicit]{titlesec}
\usepackage{xcolor}
\usepackage{charter}
\usepackage{rotating, graphicx}
\usepackage{titlesec}
\usepackage{tcolorbox}
\usepackage{hyperref}
\usepackage{graphicx}
\newcommand\ChapterFont{\rmfamily\selectfont\huge}
\newcommand\SectionFont{\bfseries\rmfamily\selectfont\Large}
\newcommand\typename{WiFo}
\renewcommand{\baselinestretch}{1.5}
\titlespacing*{\chapter}{0pt}{-80pt}{45pt}
\definecolor{wifo}{RGB}{18, 130, 140}
\definecolor{info}{RGB}{140, 18, 42}
\definecolor{bpc}{RGB}{0, 0, 0}
\newcommand\pcolor{black}
\newcommand{\restyle}[1]{
\renewcommand\pcolor{#1}
\renewcommand\typename{\MakeUppercase{#1}}
}
\newcommand{\talk}[6]{
\restyle{#2}
\renewcommand{\baselinestretch}{1.0}
\chapter[{\color{#2} #1\hfill\break (#6, #3, #5)\hfill}]{#1}
{\color{\pcolor}
\hfill #6
\vskip0.01ex
#3\hfill#4\hfill#5
\vskip1.2ex
\titlerule[0.4ex]
\vskip3ex
}
}
\titleformat{\chapter}[display]
{\normalfont}
{}
{0pt}
{%
\begin{tikzpicture}
\node[
draw=\pcolor,
rounded corners,
outer sep=0pt,
inner sep=6pt,
rotate=90,
line width=1pt,
font=\Large\color{\pcolor}\bfseries
]
(chapname)
{\typename};
\node[
fill=\pcolor,
minimum width=2cm,
minimum height=2.3cm,
rounded corners,
anchor=west,
font=\color{white}\fontsize{40}{48}\selectfont\bfseries
]
at ([xshift=6pt]chapname.south)
(chapnumber)
{\thechapter};
\node[
anchor=west,
text width=\textwidth-4cm,
font=\bfseries\Large
]
at ([xshift=10pt]chapnumber.east)
{\color{\pcolor}#1};
\end{tikzpicture}%
\vspace{-40pt}
}
\titleformat{name=\chapter,numberless}[block]
{\normalfont\selectfont\huge\color{\pcolor}}
{}
{0pt}
{\parbox[b]{70pt}{\mbox{}}%
\hspace{15pt}%
\parbox[b]{\dimexpr\textwidth-15pt}{%
\raggedright\bfseries#1\vskip6pt%
}%
}
\titleformat{\section}
{\normalfont\small\sffamily\SectionFont\color{\pcolor}}
{\colorbox{\pcolor}{%
\parbox[c][16pt][c]{40pt}{%
\centering\textcolor{white}{\SectionFont\Large\rmfamily\thesection}%
}%
}%
}
{1em}
{#1}
[\vspace{-0.755\baselineskip}%
\color{\pcolor}\hspace*{\dimexpr40pt+2\fboxsep\relax}%
\rule{\dimexpr\textwidth-40pt-2\fboxsep\relax}{1pt}%
]
\usepackage{mathtools}
\usepackage{amsmath, amsthm, amssymb, amsfonts, enumerate}
\renewcommand{\qedsymbol}{$\blacksquare$}
\usepackage{lipsum}