-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.tex
81 lines (72 loc) · 2.2 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
\usepackage[T1]{fontenc}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage[margin=1in]{geometry}
\usepackage[toc,page]{appendix}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{courier} % proper monospace font for code
\usepackage{caption}
\usepackage{enumitem} %used for enumerate-manipulation
\usepackage{epstopdf}
\usepackage{float} %used to properly place float-objects (figures)
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{listings} % Allows code-listings
\usepackage{lscape}
\usepackage{rotating}
\usepackage{tabularx,ragged2e,booktabs,caption}
\usepackage{titlesec, blindtext, color}
\usepackage{titling}
\usepackage{ulem} %used for strikeout
\usepackage{url}
\usepackage{verbatim} %used for block-commenting
\usepackage{wrapfig}
\usepackage{xcolor,colortbl}
\usepackage{xstring} %string-manipulation
\usepackage{units}
\usepackage{subcaption}
\usepackage{multirow}
\usepackage{titlesec}
\usepackage{pdfpages}
\newcommand{\sectionbreak}{\clearpage}
\definecolor{gray75}{gray}{0.75}
\definecolor{gray1}{gray}{0.97}
\definecolor{gray2}{gray}{0.90}
\definecolor{gray3}{gray}{0.80}
\definecolor{gray4}{gray}{0.63}
\lstset{
basicstyle=\footnotesize\ttfamily,
%numbers=left,
numberstyle=\tiny,
%stepnumber=2,
numbersep=5pt,
tabsize=2,
extendedchars=true,
breaklines=true,
keywordstyle=\color{red},
frame=b,
% stringstyle=\color{white}\ttfamily,
showspaces=false,
showtabs=false,
xleftmargin=17pt,
framexleftmargin=17pt,
framexrightmargin=5pt,
framexbottommargin=4pt,
%backgroundcolor=\color{lightgray},
showstringspaces=false
}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}
\newcommand{\hsp}{\hspace{20pt}}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\parindent=0pt
\parskip=5pt
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries}