-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.tex
210 lines (152 loc) · 4.34 KB
/
main.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
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
\documentclass[11pt,a5paper]{article}
\usepackage[utf8]{inputenc}
%\usepackage{german}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{textcomp}
\usepackage[width=11.80cm, height=18.00cm]{geometry} % 1.5 cm of space on all edges
\usepackage{tabularx}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{mathtools}
\usepackage[percent]{overpic}
\usepackage[absolute]{textpos}
\usepackage{beramono}
\usepackage{ascii}
\usepackage[T1]{fontenc}
\usepackage{titlesec}
\usepackage[most]{tcolorbox}
\usepackage{color}
\usepackage{mdframed}
% Clickable ToC, see http://tex.stackexchange.com/a/73865
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Custom commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%INCLUDE_CUSTOM_CMDS
% Colors
\newcommand\chordcolor{blue}
\newcommand\refboxcolor{gray!17}
\newcommand\colorjoke{red}
% Box around chorus
\tcbset{
frame code={}
center title,
left=0pt,
right=0pt,
top=0pt,
bottom=0pt,
colback=\refboxcolor,
colframe=white,
width=\dimexpr\textwidth\relax,
enlarge left by=0mm,
boxsep=5pt,
arc=0pt,outer arc=0pt,
}
% Borders indicating pre-chorus blocks
\newmdenv[
topline=false,
bottomline=false,
rightline=false,
skipabove=0,
skipbelow=0,
linewidth=2pt
]{siderules}
% Suppress enumeration of sections
\setcounter{secnumdepth}{-1}
% Layout and fonts
\setlength{\TPHorizModule}{\paperwidth}\setlength{\TPVertModule}{\paperheight}
\renewcommand{\familydefault}{\sfdefault}
\setlength{\parindent}{0cm}
% Adding Chords
\newcommand\chord[2][l]{\makebox[0pt][#1]{\begin{tabular}[b]{@{}l@{}}\textcolor{\chordcolor}{\normalfont{#2}}\\\mbox{}\end{tabular}}}
% Highlighting and referencing chorus
\newcommand\prechorus[1]{\begin{siderules}#1\end{siderules} \ }
\newcommand\refrain[1]{\begin{tcolorbox}#1\end{tcolorbox} \ }
\newcommand\refprechorus{\prechorus{\textsc{Pre-Chorus}} \ }
\newcommand{\refrefrain}{\refrain{\textsc{Refrain}} \ }
\newcommand{\refrefraintwice}{\refrain{\textsc{2x Refrain}} \ }
\newcommand{\refrefrainthreetimes}{\refrain{\textsc{3x Refrain}} \ }
% Adding song info at top right corner
\newcommand\songinfo[2]{\begin{textblock}{0.5}(0.41,0.065)
\footnotesize
\hfill \textit{Original:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
\hfill #1
\hfill \textit{Lyrics:} \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
\hfill #2
\end{textblock}}
% Short song info (Fix for formatting issues)
\newcommand\songinfoshort[2]{\begin{textblock}{0.5}(0.41,0.065)
\footnotesize
\hfill \textit{Original:} #1
\hfill \textit{Lyrics:} #2
\end{textblock}}
% Adding a Joke (as a filler)
\newcommand\joke[1]{\textcolor{\colorjoke}{\textsc{#1}}}
\newcommand\glq{`}
\newcommand\grq{'}
\newcommand\glqq{``}
\newcommand\grqq{''}
% Title page
\def\maketitle{
\vspace*{0.5cm}
\begin{overpic}[width=12.5cm]{hacker-cover.pdf}
\end{overpic}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\thispagestyle{empty}
\pagebreak
% Document font size
\small
% Do not delete or modify this line, it is necessary for the build script.
%INCLUDE_PREAMBLE
\input{preamble.tex}
\tableofcontents
\pagebreak
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Songs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not delete or modify this line, it is necessary for the build script.
%INCLUDE_SONGS
\input{songs/branching-tree.tex}
\input{songs/another-byte-in-the-code.tex}
\input{songs/the-final-countdown.tex}
\input{songs/never-gonna-push-you-up.tex}
\input{songs/commit-the-code-jack.tex}
\input{songs/overflow.tex}
\input{songs/firewall.tex}
\input{songs/alles-in-der-cloud.tex}
\input{songs/mad-world.tex}
\input{songs/gamer.tex}
\input{songs/another-day-in-tech-support.tex}
\input{songs/a-new-pc.tex}
\input{songs/smombie.tex}
\input{songs/you-are-the-best-phone.tex}
\input{songs/applaus.tex}
\input{songs/thats-what-math-is-for.tex}
\input{songs/word-user-trying-tex.tex}
\input{songs/python.tex}
\input{songs/tux-the-magic-penguin.tex}
\input{songs/codefinger.tex}
\input{songs/kunst-am-bau.tex}
\input{songs/volker-claus.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Cover
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace*{1.5cm}
\hfill\includegraphics[width=12cm]{hacker-cover-back.pdf}\hspace*{\fill}
\thispagestyle{empty}
\end{document}