forked from apoorvkh/ml-paper-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_macros.tex
42 lines (33 loc) · 1.03 KB
/
_macros.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
% \newcommand{\authorname}[1]{{\textcolor{blue}{[Author: #1]}}}
% ...
% \newcommand{\commandname}{string\xspace}
% \definecolor{colorname}{rgb}{0.92,0.49,0.19}
% General
\newcommand{\nbf}[1]{{\noindent \textbf{#1.}}}
\newcommand{\supp}{supplemental material\xspace}
\ifarxiv \renewcommand{\supp}{appendix\xspace} \fi
\newcommand{\todo}[1]{{\textcolor{red}{[TODO: #1]}}}
% Reviewer commands (1 to 5), e.g. \R{1}, \R{2}
\newcommand{\R}[1]{{%
\textbf{%
\ifstrequal{#1}{1}{\textcolor{red}{R#1}}{%
\ifstrequal{#1}{2}{\textcolor{blue}{R#1}}{%
\ifstrequal{#1}{3}{\textcolor{magenta}{R#1}}{%
\ifstrequal{#1}{4}{\textcolor{teal}{R#1}}{%
\textcolor{cyan}{R#1}%
}}}}%
}%
}}
\newenvironment{packed_enum}{
\begin{enumerate}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{2pt}
\setlength{\parsep}{0pt}
}{\end{enumerate}}
\newenvironment{packed_item}{
\begin{itemize}
\setlength{\itemsep}{1pt}
\setlength{\parskip}{2pt}
\setlength{\parsep}{0pt}
}{\end{itemize}}
\frenchspacing