-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.tex
109 lines (84 loc) · 3.06 KB
/
configuration.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
\interfootnotelinepenalty=10000
\newcolumntype{s}{>{\centering\arraybackslash}X}
\hypersetup{
unicode=true, % non-Latin characters in bookmarks
pdffitwindow=true, % page fit to window when opened
pdfnewwindow=true, % links in new window
pdfkeywords={}, % list of keywords
colorlinks=true, % false: boxed links; true: colored links
linkcolor=black, % color of internal links
citecolor=black, % color of links to bibliography
filecolor=black, % color of file links
urlcolor=black, % color of external links
pdftitle={}, % title
pdfauthor={}, % author
pdfsubject={} % subject of the document
}
\newcommand{\fixme}[1]{
\noindent
\colorbox{yellow} {\scriptsize FIXME}
{\bf[}\textcolor{red}{#1}{\bf]}
%\newline
}
% Color Definitions
\definecolor{darkred}{rgb}{0.7, 0.0, 0.00}
\definecolor{darkblue}{rgb}{0.1, 0.4, 0.85}
\newcommand{\red}[1]{{\color{darkred}{#1}}}
\newcommand{\blue}[1]{{\color{darkblue}{#1}}}
% Notations
\newcommand{\hplus}{\;\hat{+}\;}
\newcommand{\hminus}{\;\hat{-}\;}
\newcommand{\hdiv}{\;\hat{\div}\;}
\newcommand{\uminus}{\;\hat{-}\;}
\newcommand{\hmul}{\;\star\;}
\newcommand{\heq}{\;\hat{=}\;}
\newcommand{\hneq}{\;\hat{\neq}\;}
\newcommand{\hand}{\;\hat{\textsc{AND}}\;}
\newcommand{\hgt}{\;\hat{>}\;}
\newcommand{\hgeq}{\;\hat{\geq}\;}
\newcommand{\hleq}{\;\hat{\leq}\;}
\newcommand{\hlt}{\;\hat{<}\;}
\newcommand{\hlte}{\;\hat{\leq}\;}
\newcommand{\enc}[1]{\widetilde{#1}}
\newcommand{\bigo}[1]{$\mathcal{O}({#1})$}
\newcommand{\myslash}{$/$}
\renewcommand*{\lstlistlistingname}{List of Source Codes}
\renewcommand{\lstlistingname}{Code}
\makeatletter
\begingroup
\let\newcounter\@gobble
\let\setcounter\@gobbletwo
\globaldefs\@ne
\let\c@loadepth\@ne
\newlistof{algorithms}{loa}{\listalgorithmname}
\endgroup
\let\l@algorithm\l@algorithms
\makeatother
\makeatletter
\begingroup
\let\newcounter\@gobble
\let\setcounter\@gobbletwo
\globaldefs\@ne
\let\c@loldepth\@ne
\newlistof{listings}{lol}{\lstlistlistingname}
\endgroup
\let\l@lstlisting\l@listings
\makeatother
\counterwithout{footnote}{chapter} % Continuous footnote numbering
\renewcommand{\lstlistoflistings}{\listoflistings}
\renewcommand{\cftsecfont}{\normalfont\bfseries} % section titles in bold
\renewcommand{\cftfignumwidth}{5em}
\renewcommand{\cftfigpresnum}{Figure }
\renewcommand{\cftfigaftersnum}{:}
\renewcommand{\cfttabnumwidth}{4.5em}
\renewcommand{\cfttabpresnum}{Table }
\renewcommand{\cfttabaftersnum}{:}
\renewcommand{\cftalgorithmsnumwidth}{6em}
\renewcommand{\cftalgorithmspresnum}{Algorithm }
\renewcommand{\cftalgorithmsaftersnum}{:}
\renewcommand{\cftlistingsnumwidth}{4.5em}
\renewcommand{\cftlistingspresnum}{Code }
\renewcommand{\cftlistingsaftersnum}{:}
\newcommand{\icon}[1]{\includegraphics[width=0.9\textwidth]{#1}}
\newcommand{\subscript}[1]{\textbf{#1.\alph*:}}
\newcommand{\f}[1]{{\fontfamily{lmss}\textsc{#1}}}