-
Notifications
You must be signed in to change notification settings - Fork 0
/
preamble.tex
207 lines (189 loc) · 6.36 KB
/
preamble.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
% Allow latex commands
\usepackage{ltxcmds}
\usepackage{listings}
% Allow us to define page borders
% \ifsetCustomMargin\
% \RequirePackage[left=37mm,right=30mm,top=35mm,bottom=30mm]{geometry}
% \setFancyHdr\ % To apply fancy header after geometry package is loaded
% \fi
% Package for displaying algorithms in a document as pseudo code
% \usepackage{algorithmicx} % Replaced the algorithm package
\usepackage[chapter]{algorithm}
\usepackage{algpseudocode}
% Package for having multiple figures in one
\usepackage{subfig} % replaced the subfigure package
\usepackage{float}
% Have multiple rows per column in a table
\usepackage{multirow}
\usepackage{xparse}
\usepackage{makecell}
% Special bold and uppercase math characters
\usepackage{mathtools} % Replaced the amsmath package
\usepackage{upgreek}
\usepackage{amssymb}
\usepackage{mathptmx} % Replaced the times package
% Keep the old calligraphic math font
\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}
% *****************************************************************************
% ******************* Fonts (like different typewriter fonts etc.)*************
% Add `customfont' in the document class option to use this section
\ifsetCustomFont
% Set your custom font here and use `customfont' in options. Leave empty to
% load computer modern font (default LaTeX font).
% \RequirePackage{helvet}
% \RequirePackage{newtxtext,newtxmath}
\RequirePackage{lmodern}
\usepackage{fixcmex}
% \RequirePackage{tgtermes,newtxmath}
% For use with XeLaTeX
% \setmainfont[
% Path = ./libertine/opentype/,
% Extension = .otf,
% UprightFont = LinLibertine_R,
% BoldFont = LinLibertine_RZ, % Linux Libertine O Regular Semibold
% ItalicFont = LinLibertine_RI,
% BoldItalicFont = LinLibertine_RZI, % Linux Libertine O Regular Semibold Italic
% ]
% {libertine}
% % load font from system font
% \newfontfamily\libertinesystemfont{Linux Libertine O}
\fi
% Package for having nice bold and uppercase characters
% in formulae
% Already loaded by the PHD thesis class
%\usepackage{mathptmx} % Replaced the times package
% Add colour to your text and images
% Already loaded by the PHD thesis class
%\usepackage{color}
% Allow us to easily customize page setup
% The fancyhdr package was already defined in the class
%\usepackage{fancyhdr}
%\pagestyle{fancyplain}
%\rfoot{\thepage}
% This clears old style settings
%\fancyhead{}
%\fancyfoot{}
%\sloppy
% Other misc packages
%\usepackage{ifpdf}
\usepackage{afterpage}
% \usepackage[labelfont=bf,textfont=it]{caption}
\usepackage{pdflscape}
\usepackage{multicol}
%\usepackage{babel} % For multilingual support
%\ifpdf
% \usepackage[pdftex]{graphicx}
%\else
% \usepackage{graphicx}
%\fi
% Set equation numbers <chapter>.<section>.<index>
\numberwithin{equation}{section}
\usepackage{bm,bbm}
\usepackage{pdflscape}
\usepackage{multicol}
\usepackage{booktabs} % for top and bottom rules in tables
\usepackage{tabularx} % for variable width columns in tables
\usepackage[table]{xcolor}
%%%%%%%% Some Table Options %%%%%%%%%%%%%%
% define "struts", as suggested by Claudio Beccari in
% % a piece in TeX and TUG News, Vol. 2, 1993.
\newcommand\Tstrut{\rule{0pt}{2.6ex}} % = `top' strut
\newcommand\Bstrut{\rule[-0.9ex]{0pt}{0pt}} % = `bottom' strut
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[export]{adjustbox}[2011/08/13]
% Set equation numbers <chapter>.<section>.<index>
% Include tikz
\usepackage{tikz,pgfplots}
\usepackage{tikz-3dplot}
\usetikzlibrary{matrix,positioning,arrows,shapes,calc,scopes}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{dsp,chains,fit}
\usetikzlibrary{external}
\usetikzlibrary{graphs}
\input{tikz_settings}
% Allow tikz images to be compiled once
% \tikzexternalize[prefix=cache/]
% \tikzexternaldisable
% \tikzsetexternalprefix{cache/}
% Make examples in your document
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[chapter]
%\usepackage{shadethm}
%\theoremstyle{definition}
%\newshadetheorem{exmp}{Example}[section]
%\definecolor{shadethmcolor}{HTML}{EDF8FF}
\usepackage{mdframed}
\usepackage[shortlabels,inline]{enumitem}
\newmdtheoremenv[
hidealllines=true,
innerleftmargin=8pt,%
innerrightmargin=8pt,%
innertopmargin=12pt,%
innerbottommargin=12pt,%
backgroundcolor=blue!10,%
skipbelow=\baselineskip,%
skipabove=\baselineskip]{exmp}{Example}[section]
\newmdenv[linecolor=blue!10, backgroundcolor=blue!10,skipbelow=\baselineskip,
skipabove=\baselineskip]{goals}
% Allow hyperlinks in our document. Redefine the section names to use the
% squigly S
\usepackage{nameref}
\usepackage{hyperref}
\definecolor{brickred}{rgb}{0.8, 0.25, 0.33}
%%%%%%%%% Some Hyperref Options %%%%%%%%%%
\hypersetup{%
colorlinks = true,
citecolor = blue,
linkcolor = brickred
}
% \renewcommand{\sectionautorefname}{\S}
% \renewcommand{\subsectionautorefname}{\S}
% \renewcommand{\subsubsectionautorefname}{\S}
% \renewcommand{\pageautorefname}{p.}
% \renewcommand{\chapterautorefname}{Chapter}
% \newcommand{\subfigureautorefname}{\figureautorefname}
\usepackage{array}
\newcolumntype{b}{X}
\newcolumntype{s}{>{\hsize=.5\hsize}X}
\newcolumntype{x}[1]{>{\centering\hspace{0pt}}p{#1}}%
\newcommand{\heading}[1]{\multicolumn{1}{c}{#1}}
\renewcommand{\theoremautorefname}{Theorem}
\newcommand{\algorithmautorefname}{Algorithm}
\newcommand{\subfigureautorefname}{\figureautorefname}
\newcommand{\subtableautorefname}{\tableautorefname}
\newcommand{\Appendixautorefname}{appendix}
%\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
% \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\robustify{\subref}
\usepackage{breqn}
\input{misc/cubes}
\usepackage{relsize}
\usepackage{diagbox}
% \usepackage{catoptions}
% \makeatletter
% \def\Autoref#1{%
% \begingroup
% \edef\reserved@a{\cpttrimspaces{#1}}%
% \ifcsndefTF{r@#1}{%
% \xaftercsname{\expandafter\testreftype\@fourthoffive}
% {r@\reserved@a}.\\{#1}%
% }{%
% \ref{#1}%
% }%
% \endgroup
% }
% \def\testreftype#1.#2\\#3{%
% \ifcsndefTF{#1autorefname}{%
% \def\reserved@a##1##2\@nil{%
% \uppercase{\def\ref@name{##1}}%
% \csn@edef{#1autorefname}{\ref@name##2}%
% \autoref{#3}%
% }%
% \reserved@a#1\@nil
% }{%
% \autoref{#3}%
% }%
% }
% \makeatother
\interfootnotelinepenalty=10000