-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstructure.tex
276 lines (228 loc) · 11.8 KB
/
structure.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
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
% !TeX root = ./mainDoc.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Arsclassica Article
% Structure Specification File
%
% This file has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Lorenzo Pantieri (http://www.lorenzopantieri.net) with extensive modifications by:
% Vel (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% REQUIRED PACKAGES
%----------------------------------------------------------------------------------------
\usepackage[usenames,dvipsnames]{color} % Required for specifying custom colors and referring to colors by name
\usepackage[
nochapters, % Turn off chapters since this is an article
beramono, % Use the Bera Mono font for monospaced text (\texttt)
eulermath,% Use the Euler font for mathematics
eulerchapternumbers,
pdfspacing, % Makes use of pdftex’ letter spacing capabilities via the microtype package
dottedtoc % Dotted lines leading to the page numbers in the table of contents
]{classicthesis} % The layout is based on the Classic Thesis style
\usepackage{arsclassica} % Modifies the Classic Thesis package
%checkout https://tex.stackexchange.com/a/450098/123262 to get arsclassica working with lmodern...
%\usepackage{lmodern}
%\titleformat{\paragraph}[runin]
% {\normalfont\normalsize\sffamily}
% {\textssc{\MakeTextLowercase{\theparagraph}}}%
% {0pt}{\spacedlowsmallcaps}
\usepackage[T1]{fontenc} % Use 8-bit encoding that has 256 glyphs
\usepackage[utf8]{inputenc} % Required for including letters with accents
\usepackage{textcomp} % required for ° Symbol, https://en.wikibooks.org/wiki/LaTeX/Special_Characters#Degree_symbol_for_temperature_and_math
\usepackage{graphicx} % Required for including images
\graphicspath{{Figures/}} % Set the default folder for images
\usepackage{enumitem} % Required for manipulating the whitespace between and within lists
\usepackage{lipsum} % Used for inserting dummy 'Lorem ipsum' text into the template
\usepackage{amsmath,amssymb,amsthm} % For including math equations, theorems, symbols, etc
\numberwithin{equation}{section} %https://tex.stackexchange.com/questions/106935/how-to-include-chapter-number-in-equation-numbers
\numberwithin{figure}{section}
\usepackage{varioref} % More descriptive referencing
\usepackage{url}
%for printout, use option [hidelinks]
\usepackage{hyperref}
%for digital distribution, mark links in appropriate color
%\usepackage{hyperref}
\usepackage{afterpage} %http://blog.peschla.net/2012/11/latex-footnotes-in-captions/
\usepackage{pdflscape}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{geometry}
\usepackage[ngerman, english]{babel}
\usepackage[square,
authoryear,
%numbers,
%longnamesfirst,
]{natbib}
\usepackage{enumitem}
\usepackage{authblk}
\usepackage{relsize, etoolbox}% http://ctan.org/pkg/{relsize,etoolbox}
\AtBeginEnvironment{quote}{\smaller\fontfamily{lmss}\selectfont}% Step font down one size relative to current font.
% see http://tex.stackexchange.com/questions/25249/how-do-i-use-a-particular-font-for-a-small-section-of-text-in-my-document for fontfamilies
\usepackage{listofsymbols} % Für Symbolverzeichnis
\usepackage{nicefrac} % für schräge Brüche https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_nicefrac
\usepackage{mdframed}
% to have a separation in the text with extra space between paragraphs and no indendation following
\newcommand*{\skippingparagraph}{\par\vspace{1.0\baselineskip}\noindent}
\newcounter{reqnum}
\newcommand{\reqP}[1]{\vspace{0pt}\noindent\textbf{Anforderung \refstepcounter{reqnum}\thereqnum:\ \label{#1}}\textbf}
\usepackage{multicol}
\usepackage{booktabs}
\usepackage{chngcntr}
\usepackage{tabularx}
\usepackage{listliketab}
%Place floats where they belong to:-)
%see https://tex.stackexchange.com/questions/118662/use-placeins-for-subsections
\usepackage{float}
\usepackage[section]{placeins}
\makeatletter
\AtBeginDocument{%
\expandafter\renewcommand\expandafter\subsection\expandafter{%
\expandafter\@fb@secFB\subsection
}%
}
\makeatother
%----------------------------------------------------------------------------------------
% HYPERLINKS
%---------------------------------------------------------------------------------------
\definecolor{mediumviolet-red}{rgb}{0.78, 0.08, 0.52}
\hypersetup{
% draft, % Uncomment to remove all links (useful for printing in black and white)
colorlinks=true, breaklinks=true, bookmarks=true,bookmarksnumbered,
urlcolor=webbrown, linkcolor=mediumviolet-red, citecolor=webgreen, % Link colors
pdftitle={}, % PDF title
pdfauthor={\textcopyright}, % PDF Author
pdfsubject={}, % PDF Subject
pdfkeywords={}, % PDF Keywords
pdfcreator={pdfLaTeX}, % PDF Creator
pdfproducer={LaTeX with hyperref and ClassicThesis} % PDF producer
}
%----------------------------------------------------------------------------------------
% TODONOTES
%---------------------------------------------------------------------------------------
\let\marginpar\oldmarginpar %as seen in https://tex.stackexchange.com/a/33429/123262
\usepackage[colorinlistoftodos]{todonotes}
\newcommand{\todoInfo}[1]{\todo[color=blue!25]{INFO: #1}}
\newcommand{\todoCite}[1]{\todo[color=green!40]{INFO: #1}}
%----------------------------------------------------------------------------------------
% CODESNIPPETS
%---------------------------------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Code Snippet
% LaTeX Template
% Version 1.0 (14/2/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Velimir Gayevskiy (vel@latextemplates.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{listings} % Required for inserting code snippets
\definecolor{DarkGreen}{rgb}{0.0,0.4,0.0} % Comment color
\definecolor{highlight}{RGB}{255,251,204} % Code highlight color
\definecolor{DogwoodRose}{rgb}{0.84, 0.09, 0.41}
\definecolor{lemonchiffon}{rgb}{1.0, 0.98, 0.8}
\definecolor{lightgoldenrodyellow}{rgb}{0.98, 0.98, 0.82}
\definecolor{oldlace}{rgb}{0.99, 0.96, 0.9}
\definecolor{oldlavender}{rgb}{0.47, 0.41, 0.47}
\definecolor{pakistangreen}{rgb}{0.0, 0.4, 0.0}
\definecolor{ao}{rgb}{0.0, 0.0, 1.0}
\definecolor{britishracinggreen}{rgb}{0.0, 0.26, 0.15}
\definecolor{coquelicot}{rgb}{1.0, 0.22, 0.0}
\definecolor{cordovan}{rgb}{0.54, 0.25, 0.27}
\definecolor{darkcandyapplered}{rgb}{0.64, 0.0, 0.0}
\definecolor{mediumchampagne}{rgb}{0.95, 0.9, 0.67}
\lstdefinestyle{Style1}{ % Define a style for your code snippet, multiple definitions can be made if, for example, you wish to insert multiple code snippets using different programming languages into one document
language=JavaScript, % Detects keywords, comments, strings, functions, etc for the language specified
backgroundcolor=\color{oldlace}, % Set the background color for the snippet - useful for highlighting
basicstyle=\smaller\smaller\ttfamily, % The default font size and style of the code
breakatwhitespace=true, % If true, only allows line breaks at white space
breaklines=true, % Automatic line breaking (prevents code from protruding outside the box)
captionpos=b, % Sets the caption position: b for bottom; t for top
commentstyle=\usefont{T1}{pcr}{m}{sl}\color{ao}\textbf, % {m}DarkGreen Style of comments within the code - dark green courier font
deletekeywords={}, % If you want to delete any keywords from the current language separate them by commas
%escapeinside={\%}, % This allows you to escape to LaTeX using the character in the bracket
firstnumber=1, % Line numbers begin at line 1
frame=single, % Frame around the code box, value can be: none, leftline, topline, bottomline, lines, single, shadowbox
frameround=tttt, % Rounds the corners of the frame for the top left, top right, bottom left and bottom right positions
keywordstyle=\color{darkcandyapplered}\textbf, % Functions are bold and blue
morekeywords={}, % Add any functions no included by default here separated by commas
numbers=left, % Location of line numbers, can take the values of: none, left, right
numbersep=10pt, % Distance of line numbers from the code box
numberstyle=\tiny\color{Gray}, % Style used for line numbers
rulecolor=\color{black}, % Frame border color
showstringspaces=false, % Don't put marks in string spaces
showtabs=false, % Display tabs in the code as lines
stepnumber=5, % The step distance between line numbers, i.e. how often will lines be numbered
stringstyle=\color{Purple}, % Strings are purple
tabsize=2 % Number of spaces per tab in the code
}
\lstdefinestyle{StyleJSON}{ % Define a style for your code snippet, multiple definitions can be made if, for example, you wish to insert multiple code snippets using different programming languages into one document
language=JavaScript, % Detects keywords, comments, strings, functions, etc for the language specified
backgroundcolor=\color{oldlace}, % Set the background color for the snippet - useful for highlighting
basicstyle=\smaller\smaller\ttfamily, % The default font size and style of the code
breakatwhitespace=true, % If true, only allows line breaks at white space
breaklines=true, % Automatic line breaking (prevents code from protruding outside the box)
captionpos=b, % Sets the caption position: b for bottom; t for top
commentstyle=\usefont{T1}{pcr}{m}{sl}\color{ao}\textbf, % {m}DarkGreen Style of comments within the code - dark green courier font
deletekeywords={}, % If you want to delete any keywords from the current language separate them by commas
%escapeinside={\%}, % This allows you to escape to LaTeX using the character in the bracket
keywordstyle=\color{darkcandyapplered}\textbf, % Functions are bold and blue
morekeywords={}, % Add any functions no included by default here separated by commas
numbers=left, % Location of line numbers, can take the values of: none, left, right
numbersep=10pt, % Distance of line numbers from the code box
numberstyle=\tiny\color{Gray}, % Style used for line numbers
rulecolor=\color{black}, % Frame border color
showstringspaces=false, % Don't put marks in string spaces
showtabs=false, % Display tabs in the code as lines
stringstyle=\color{Purple}, % Strings are purple
tabsize=2, % Number of spaces per tab in the code
numbers=none,
frame=none,
}
\definecolor{darkgray}{rgb}{.4,.4,.4}
\definecolor{purple}{rgb}{0.65, 0.12, 0.82}
%define Javascript language
\lstdefinelanguage{JavaScript}{
keywords={typeof, new, true, false, catch, try, finally, function, return, null, then, catch, switch, var, const, let, class, if, in, while, do, else, case, break, yield, async, await},
keywordstyle=\color{blue}\bfseries,
ndkeywords={class, export, boolean, throw, implements, import, this},
ndkeywordstyle=\color{darkgray}\bfseries,
identifierstyle=\color{black},
sensitive=false,
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\color{purple}\ttfamily,
stringstyle=\color{red}\ttfamily,
morestring=[b]',
morestring=[b]"
}
\lstset{
language=JavaScript,
extendedchars=true,
basicstyle=\footnotesize\ttfamily,
showstringspaces=false,
showspaces=false,
numbers=left,
numberstyle=\footnotesize,
numbersep=9pt,
tabsize=2,
breaklines=true,
showtabs=false,
captionpos=b
}
% Create a command to cleanly insert a snippet with the style above anywhere in the document
\newcommand{\insertcode}[2]{\begin{itemize}\item[]\lstinputlisting[{caption={#2}},label=#1,style=Style1]{#1}\end{itemize}} % The first argument is the script location/filename and the second is a caption for the listing
% Create a command to cleanly insert a snippet with the style above anywhere in the document
\newcommand{\insertJSON}[2]{\lstinputlisting[{caption={#2}},label=#1,style=StyleJSON]{#1}} % The first argument is the script location/filename and the second is a caption for the listing