-
Notifications
You must be signed in to change notification settings - Fork 8
/
dar.tex
67 lines (59 loc) · 2.08 KB
/
dar.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{amssymb}
%\usepackage{amsmath}
%\usepackage{mathrsfs}
\usepackage{natbib}
\usepackage{float}
\usepackage{graphicx}
% Figure captions
%\makeatletter
%\newsavebox{\tempbox}
%\newcommand{\@makefigcaption}[2]{%
%\vspace{-10pt}{#1.--- #2\par}}%
% \renewcommand{\figure}{\let\@makecaption\@makefigcaption\@float{figure}}
%\makeatother
% No overflow
\setlength{\emergencystretch}{2em}
% Typeography
\newcommand{\documentname}{\textsl{Article}}
\newcommand{\sectionname}{Section}
\newcommand{\equationname}{equation}
\newcommand{\project}[1]{\textsl{#1}}
\newcommand{\foreign}[1]{\textsl{#1}}
\newcommand{\code}[1]{\texttt{\detokenize{#1}}}
\newenvironment{pseudocode}{\begin{ttfamily}\detokenize\obeylines}{}
\newcommand{\aposteriori}{\foreign{a~posteriori}}
\newcommand{\apriori}{\foreign{a~priori}}
\newcommand{\adhoc}{\foreign{ad~hoc}}
\newcommand{\etal}{\foreign{et al.}}
\newcommand{\eg}{\foreign{e.g.}}
\newcommand{\vs}{\foreign{vs.}}
\newcommand{\acronym}[1]{{\scalebox{0.9}{#1}}}
% Notes
\newcommand{\notename}{footnote}
\newcommand{\note}[1]{\footnote{#1}}
% Problems
\newcommand{\problemname}{Problem}
\newcounter{problem}
\newenvironment{problem}{\refstepcounter{problem}\par\medskip\noindent\textbf{\problemname~\theproblem:}}{}
% Math stuff
\newcommand{\mmatrix}[1]{\boldsymbol{#1}}
\newcommand{\inverse}[1]{{#1}^{-1}}
\newcommand{\transpose}[1]{{#1}^{\scriptscriptstyle \top}}
\newcommand{\parametervector}[1]{\mmatrix{#1}}
\newcommand{\bvec}[1]{\mmatrix{#1}}
\newcommand{\setof}[1]{\{{#1}\}}
\newcommand{\dd}{\mathrm{d}}
\newcommand{\given}{\,|\,}
\newcommand{\mean}[1]{\left<{#1}\right>}
% Space, headers and margins
\setlength{\parindent}{3.0ex}
\addtolength{\topmargin}{-0.45in}
\addtolength{\textheight}{-0.35in}
% References.
\usepackage{color,hyperref}
\definecolor{linkcolor}{rgb}{0,0,0.5}
\hypersetup{colorlinks=true,linkcolor=linkcolor,citecolor=linkcolor,
filecolor=linkcolor,urlcolor=linkcolor}
\newcommand{\arxiv}[1]{\href{http://arxiv.org/abs/#1}{\textsl{arXiv}:#1}}
%\newcommand{\doi}[1]{\href{http://doi.org/#1}{\textsc{doi}:#1}}
\newcommand{\isbn}[1]{\textsc{isbn:}#1}