-
Notifications
You must be signed in to change notification settings - Fork 7
/
common.tex
110 lines (93 loc) · 3.18 KB
/
common.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
% https://tex.stackexchange.com/questions/86054/how-to-remove-the-whitespace-before-itemize-enumerate
% https://ctan.math.washington.edu/tex-archive/macros/latex/contrib/enumitem/enumitem.pdf
\usepackage{enumitem}
\setlist[itemize]{noitemsep,topsep=0pt}
%\newcommand {\beginitemize} {\begin{itemize} \setlength\itemsep{0em} }
%\newcommand {\beginitemize} {\begin{itemize}[noitemsep,topsep=0pt]}
\newcommand {\stopitemize} {\end{itemize} \vspace{0.5em}}
\newcommand {\subsubsubsection} [1] {\vskip 0.5em {\bf \em #1}}
%\newcommand {\comm} [1] {}
\newcommand {\comm} [1]
{
\par
\setlength{\leftskip}{-0.8in}
\begin{tabular} {p{0.1cm} | p{\textwidth}}
{\bf ?} & {#1}
\end{tabular}
\par
\setlength{\leftskip}{0in}
}
\newcommand {\cond} {, & \textrm{if }}
\newcommand {\otherwise} {, & \textrm{else}}
\newcommand {\Forall} {\forall \ }
\newcommand {\eqdef} {\triangleq}
\newcommand {\equivalent} {\Leftrightarrow}
\renewcommand {\implies} {\Rightarrow}
\renewcommand {\impliedby} {\Leftarrow}
\renewcommand {\And} {\ \& \ }
\newcommand {\Or} {\ \vee \ }
\newcommand {\QED} {$\square$ \ \par }
\newcommand {\proofword} {{\par \sf Proof:\ }}
\newcommand {\proof} [1] {\proofword #1 \QED \par}
\newcommand {\definition} [2] {\bigskip {\bf Definition} {\rm \sc #1} \par #2 \QED \bigskip}
\newcommand {\example} [2] {\bigskip {\bf Example.} {#1} \par #2 \QED}
\newcommand {\theorem} [2] {\bigskip {\bf Theorem} {\rm \sc #1} \par #2 \QED \bigskip}
\newcommand {\ve} {\mathbf}
\newcommand {\vecc} {\boldsymbol}
\newcommand {\Questions} {\vspace{5mm} {\bf Unresolved Questions:}}
\newcommand {\assert} {\square \ }
\newcommand{\indep}{\perp\!\!\!\!\perp}
\renewcommand {\P} {\mathrm P}
\newcommand {\E} {\mathrm E }
\newcommand {\var} {\mathrm {var} \ }
\newcommand {\cov} {\mathrm {cov} }
\newcommand {\cor} {\mathrm {cor} }
\newcommand {\N} {\mathbb N}
\newcommand {\Z} {\mathrm Z}
\newcommand {\R} {\mathbb R}
\newcommand {\C} {\mathbb C}
\newcommand {\I} {\mathbb I}
\newcommand {\supp} {\mathrm {Supp}}
\newcommand {\mat} {\mathrm}
\newcommand {\trc} {\mathrm {tr} \ }
\newcommand {\VC} {\mathrm {VC} }
\newcommand {\const} {\mathrm {const} }
\newcommand {\sgn} {\mathrm {sgn} }
\newcommand {\dom} {\mathrm {dom} }
\newcommand {\range} {\mathrm {range} }
\newcommand {\Arg} {\mathrm {Arg} \ }
\newcommand {\LCA} {\mathrm {LCA} } % least common ancestor (in a tree)
\newcommand {\nul} {\mathrm {null}}
\newcommand {\Dt} {\Delta t}
\newcommand {\PC} {\mathrm {PC} }
\newcommand {\MDS} {\mathrm {MDS} }
\newcommand {\CC} {\mathrm {CC} }
\newcommand {\re} {\mathrm {re}}
\newcommand {\cl} {\mathrm {cl}}
\newcommand {\intr} {\mathrm {int}}
\newcommand {\<} {\langle}
\renewcommand {\>} {\rangle}
\newcommand {\dotve} [1] {\dot {\ve #1}}
\newcommand {\la} [1] {\lambda (#1) \ }
\newcommand {\lhs} {\mathrm {lhs}}
\newcommand {\rhs} {\mathrm {rhs}}
\providecommand{\keywords}[1]
{
\small
\textbf{\textit{Keywords---}} #1
}
\makeatletter
\DeclareRobustCommand{\cev}[1]{%
{\mathpalette\do@cev{#1}}%
}
\newcommand{\do@cev}[2]{%
\vbox{\offinterlineskip
\sbox\z@{$\m@th#1 x$}%
\ialign{##\cr
\hidewidth\reflectbox{$\m@th#1\vec{}\mkern4mu$}\hidewidth\cr
\noalign{\kern-\ht\z@}
$\m@th#1#2$\cr
}%
}%
}
\makeatother