generated from StefanoCretti/QCB_thesis_TeX_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprefix.tex
102 lines (84 loc) · 2.39 KB
/
prefix.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
% General packages
\usepackage[english]{babel}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
% Set page layout
\usepackage[
a4paper,
inner=2.5cm,
outer=1.5cm,
top=2cm,
bottom=2cm
]{geometry}
% Suppress default required title (allow custom title page)
\renewcommand\maketitle{}
\usepackage{subcaption}
% Set line spacing to 1
\usepackage{setspace}
\singlespacing
% Change chapter title formatting
\usepackage{titlesec}
\titleformat{\chapter}[block]
{\normalfont\Huge\bfseries}
{\chaptertitlename\ \thechapter:}
{10px}
{}
\titlespacing*{\chapter}{0pt}{0pt}{40pt}
% Style caption font
\usepackage[font=small,labelfont=bf]{caption}
% Math packages
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{dsfont}
\usepackage{mathtools}
% Set font to Times New Roman
\usepackage{newtxtext} % Times-like text font
\usepackage{newtxmath} % Times-like math font
% Algorithm packages
\usepackage{algorithm} % Add code caption
\usepackage{algpseudocode} % Add algorithmic environment
\usepackage{setspace} % To increase spacing among pseudocode lines
\algrenewcommand\algorithmicrequire{\textbf{Input:}} % Rename require to input
\algrenewcommand\algorithmicensure{\textbf{Output:}} % Rename ensure to output
% References packages
\usepackage[super]{natbib} % Change citations to superscript
\renewcommand{\bibsection}{} % Do not add bibliography section after title
% Table packages
\usepackage{multirow} % Allow merge of rows
\usepackage[table,xcdraw]{xcolor} % Change cell background color
%
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% Some general page settings from
% https://github.com/giacThePhantom/MolecularPhysics
% \usepackage{fancyhdr}
% \pagestyle{fancy}
% \fancyhf{}
% \lhead{\rightmark}
% \cfoot{\leftmark}
% \rfoot{\thepage}
% \setcounter{secnumdepth}{5}
\usepackage{listings}
\lstdefinestyle{bash}{
language=sh,
basicstyle=\ttfamily,
breaklines=true,
frame=leftline,
rulecolor=\color{gray},
framerule=2pt,
xleftmargin=10pt,
framesep=10pt
}
% Some generally useful packages that you may or may not need
% \usepackage[toc, page]{appendix}
% \usepackage{float}
% \usepackage[T1]{fontenc}
% \usepackage{makecell}
% \usepackage{multicol}
% \usepackage{soul}
% \usepackage{textcomp}
% \usepackage{wrapfig}
% \usepackage{xcolor}
% \usepackage{graphicx}
% \usepackage{lmodern}
% \usepackage{tcolorbox}