-
Notifications
You must be signed in to change notification settings - Fork 11
/
common-packages.tex
68 lines (48 loc) · 3.2 KB
/
common-packages.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
\usepackage{csquotes} % Context sensitive quotation facilities. Recommended by babel and should be loaded before babel.
\usepackage[english]{babel} % Sets the language used. Essential for proper hyphenation. Translates key words like 'figure' or 'table'. Note that 'english' is American English.
\usepackage{latexsym,amsmath,amssymb,amsthm,amscd} % Provides math enviroments, math symbols and more things useful for math.
\usepackage{mathtools} % Enhances amsmath and provides further mathematical tools.
\usepackage{graphicx} % Provides inclusion of graphics and a proper interface for '\includegraphics'.
% Supersedes 'epsfig' and 'graphics'.
\usepackage{enumitem} % Provides control over list environments. Supersedes 'enumerate', which gives enumerate environment an optional argument which determines the style in which the counter is printed.
%\let\newfloat\undefined % Hack to make floatrow work with memoir.
%\usepackage{floatrow} % Handles alignment of floats (figures), with centering as default.
\usepackage{xspace} % Ugly hack that sometimes helps with otherwise missing spaces.
\usepackage[backgroundcolor=white,linecolor=smartblue,bordercolor=smartblue,textsize=footnotesize]{todonotes} % Todo notes.
% Use sans-serif font in todos to clearly distinguish it from other text
\makeatletter
\renewcommand{\todo}[2][]{\@bsphack\@todo[#1]{\sffamily{#2}}\@esphack\ignorespaces}
\makeatother
\usepackage[style=alphabetic,backend=biber]{biblatex} % Bibliography.
%\usepackage{algorithm} % Algorithms.
% Use default Memoir floats for algorithms
\newcommand{\algorithmname}{Algorithm}
\newcommand{\listalgorithmname}{List of Algorithms}
\newlistof{listofalgorithms}{loa}{\listalgorithmname}
\newfloat[chapter]{algorithm}{loa}{\algorithmname}
\newfixedcaption{\falgcaption}{algorithm}
\newlistentry[chapter]{algorithm}{loa}{0}
\cftsetindents{algorithm}{0em}{2.3em}
\makeatletter
\g@addto@macro\insertchapterspace{\addtocontents{loa}{\protect\addvspace{10pt}}}
\makeatother
\usepackage{algpseudocode} % Algorithms.
\usepackage{varioref} % Automatically locates references on other pages. Load before hyperref.
%\usepackage[hidelinks]{hyperref} % Clickable references.
\usepackage[pdfencoding=auto,pdfborderstyle={/S/U/W 1},linkbordercolor=ref,colorlinks,linkcolor=ref,citecolor=cite,urlcolor=url]{hyperref} % Clickable references.
\usepackage[all]{hypcap} % Anchors links to the beginning of their respective floats. Load after hyperref.
\usepackage[noabbrev,capitalize,nameinlink]{cleveref} % Names references automatically. Load after hyperref.
\usepackage[toc,acronym]{glossaries} % Glossary.
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{pgfplots}
\pgfplotsset{compat=1.8}
\pgfplotscreateplotcyclelist{smart}{%
tangoplum,semithick,every mark/.append style={fill=tangoplum!80!black},mark=*\\%
tangogreen,semithick,every mark/.append style={fill=tangogreen!80!black},mark=square*\\%
tangoorange,semithick,every mark/.append style={fill=tangoorange!80!black},mark=otimes*\\%
tangoblue,semithick,mark=star\\%
tangobutter,semithick,every mark/.append style={fill=tangobutter!80!black},mark=diamond*\\%
tangored,semithick,every mark/.append style={solid,fill=tangored!80!black},mark=*\\%
}
\pgfplotsset{cycle list name=smart}