-
Notifications
You must be signed in to change notification settings - Fork 175
/
_macros.tex
55 lines (45 loc) · 1.35 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
43
44
45
46
47
48
49
50
51
52
53
54
55
%% PACKAGES (also see cvpr_header.tex)
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{booktabs}
\usepackage{times}
\usepackage{microtype}
\usepackage{epsfig}
\usepackage{caption}
\usepackage{float}
\usepackage{placeins}
\usepackage{color, colortbl}
\usepackage{stfloats}
\usepackage{enumitem}
\usepackage{tabularx}
\usepackage{xstring}
\usepackage{multirow}
\usepackage{xspace}
\usepackage{url}
\usepackage{subcaption}
\usepackage{xcolor}
\usepackage[hang,flushmargin]{footmisc}
% Unfortunately, this package interferes with arxiv's stamp
\ifcamera \usepackage[accsupp]{axessibility} \fi
%% MACROS
% \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}%
}}}}%
}%
}}