-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommenting.tex
43 lines (34 loc) · 1.21 KB
/
commenting.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
\usepackage{babel}
% \def\final{} % uncomment this to hide all comments
\ifdefined\final
\else
\def\enablecomments
\fi
\ifdefined\draft
\def\enablecomments{}
\fi
\usepackage{soul}
\usepackage{xcolor}
\definecolor{LightGreen}{rgb}{0.80,1.00,0.80}
\definecolor{LightBlue}{rgb}{0.80,0.80,1.00}
\definecolor{LightRed}{rgb}{1.00,0.80,0.80}
\definecolor{LightPurple}{rgb}{0.94,0.85,1.00}
\definecolor{LightGray}{rgb}{0.90,0.90,0.90}
\soulregister{\method}{7}
\soulregister{\xspace}{7}
\soulregister{\emph}{7}
\soulregister{\ref}{7}
\ifdefined\enablecomments
\DeclareRobustCommand{\commentformat}[3]{\sethlcolor{#2}\textsf{\hl{#1: #3}}}
% \newcommand{\sm} [1]{\marginnote{\scriptsize\sethlcolor{LightGray}\hl{\textsf{#1}}}}
\newcommand{\sm} [1]{{\scriptsize\sethlcolor{LightGray}\hl{\textsf{#1}}}}
\else
\newcommand{\commentformat}[3]{}
\newcommand{\sm} [1]{}
\fi
\newcommand{\pxm} [1]{\commentformat{PM}{LightGreen}{#1}}
\newcommand{\anupam}[1]{\commentformat{AD}{LightRed}{#1}}
\newcommand{\caleb} [1]{\commentformat{CL}{LightBlue}{#1}}
% \newcommand{\klas} [1]{\commentformat{KL}{LightPurple}{#1}}
\newcommand{\zifan}[1]{\commentformat{ZW}{LightPurple}{#1}}
\newcommand{\todo}[1]{\commentformat{TODO}{LightRed}{#1}}