-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmacros.tex
More file actions
121 lines (107 loc) · 4.62 KB
/
macros.tex
File metadata and controls
121 lines (107 loc) · 4.62 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
%% conference information
\newcommand{\ECS}{EDNS0 Client Subnet \xspace}
\newcommand{\ecs}{\texttt{ECS}\xspace}
%%% Macros for convenience
%% system names and terms
\newcommand\sys{\textsc{RichPeering}\xspace}
\newcommand\sysfull{\textsc{Repurposing Interconnections Clouds Have using Peering}\xspace}
\newcommand\peering{\textsc{Peering}\xspace}
\newcommand{\peeringfull} {{\em Pairing Emulated Experiments with Real Interdomain Network Gateways\xspace}}
%% References
\newcommand{\secref}[1]{\S\ref{sec:#1}}
\newcommand{\figref}[1]{Figure~\ref{fig:#1}}
\newcommand{\tabref}[1]{Table~\ref{tab:#1}}
\newcommand{\algref}[1]{Algorithm~\ref{tab:#1}}
%% to refer to lines in graphs
\newcommand{\linename}[1]{\emph{#1}\xspace}
\newcommand{\parai}[1]{\smallskip\noindent{\textit {#1}}}
\newcommand{\parab}[1]{\smallskip\noindent{\bf {#1}}}
%% Common latin terms
\newcommand{\etc}{\emph{etc.}\xspace}
\newcommand{\ie}{\emph{i.e.,}\xspace}
\newcommand{\eg}{\emph{e.g.,}\xspace}
\newcommand{\etal}{\emph{et al.}\xspace}
%% editing notes
\newcommand\ekb[1]{{\color{blue}[ekb: #1]}}
\newcommand\tbd[1]{{\color{red}{\bf TBD: #1}}}
\newcommand\new[1]{{\color{blue}{#1}}}
\newcommand\eat[1]{}
\newcommand\dlte[2]{{\vtop{\hbox{\strut #1}\hbox{\strut #2}}}} % double line table element
\newcommand\tlte[3]{{\vtop{\hbox{\strut #1}\hbox{\strut #2}\hbox{\strut #3}}}} % triple line table element
\newcounter{objective}
\renewcommand\theobjective{\Alph{objective}}
\newcommand\ObjectiveLabel{Objective \theobjective:\xspace}
%\newcommand{\objective}[1]{\refstepcounter{objective} Objective}
\newcommand{\objective}[1]{#1}
\newcommand{\objectivee}{\refstepcounter{objective}}
\newcounter{subobjective}[objective]
\renewcommand\thesubobjective{\Alph{objective}.\arabic{subobjective}}
\newcommand{\subobjectivee}{\refstepcounter{subobjective}}
\newcommand\SubobjectiveLabel{Research Question \thesubobjective:\xspace}
% \refstepcounter{section}\theobjective: #1}}
%
% this is for tasks so we can enumerate and cross-reference them
%
\newtheoremstyle{TaskStyle}
{0.75ex} % Space above
{0pt} % Space below
{\bfseries} % Body font
{} % Indent amount
{\bfseries} % Theorem head font
{.} % Punctuation after theorem head
{.5em} % Space after theorem head
{} % Theorem head spec (can be left empty, meaning `normal')
\theoremstyle{TaskStyle}
\newtheorem{tasks}{{Task}}[subobjective]
\newcommand{\taske}[1]{{\tasks #1 }}
% terms
\newcommand\oldrevtr{\textsc{revtr 1.0}\xspace}
\newcommand\newrevtr{\textsc{revtr 2.1}\xspace}
\newcommand\nexthop{next-hop\xspace}
\newcommand\nexthops{next-hops\xspace}
\newcommand\aspath{AS-path\xspace}
\newcommand\aspaths{AS-paths\xspace}
\newcommand\localpref{local-pref\xspace}
\newcommand\peers{\texttt{Peers}\xspace}
\newcommand\cones{\texttt{Cones}\xspace}
\newcommand\traceroute{\texttt{Traceroute}\xspace}
\newcommand\revtr{Reverse Traceroute\xspace}
\newcommand\mlab{M-Lab\xspace}
\newcommand\map{Internet traffic map\xspace}
\newcommand\MAP{Internet Traffic Map\xspace}
%\newcommand\mapshort{ITM\xspace}
% only used in 3 places in the proposal, so let's not add another acronym
\newcommand\mapshort{\map}
\newcommand{\regionas}{$\left<\texttt{region, AS}\right>$\xspace}
\newcommand{\cityas}{$\left<\texttt{city, AS}\right>$\xspace}
%% Camera Ready Editing Commands
% \newcommand{\edit}[2]{{\color{blue}{#2 (#1)}}}
\newcommand{\edit}[2]{{#2}} % uncomment when we want to remove color font
% \newcommand{\editna}[1]{{\color{blue}{#1 }}}
\newcommand{\editna}[1]{{#1}} % uncomment when we want to remove color font
\newcommand{\rightdownarrow}{\mathrel{\scalebox{1}[-1]{$\Rsh$}}}
\newcommand{\cmark}{\color{OliveGreen}\ding{51}}%
\newcommand{\xmark}{\color{BrickRed}\ding{55}}%
\newcommand{\mli}[1]{\mathit{#1}}
%
% make autoref use \S
%
% next hack from http://phaseportrait.blogspot.com/2009/03/remoing-hyperrefs-space-inside-autoref.html
\def\Snospace~{\S{}} %%% this version is slightly smaller, if we're space limited
\renewcommand{\sectionautorefname}{\Snospace}% (or {Section}%
\renewcommand{\subsectionautorefname}{\Snospace}%
\renewcommand{\subsubsectionautorefname}{\Snospace}%
\renewcommand{\subfigureautorefname}{\figureautorefname}%
\newcommand{\taskautorefname}{Task}%
\newcommand{\subobjectiveautorefname}{Research Question}%
\newcommand{\objectiveautorefname}{Objective}%
%
% placeholders for "make summary.txt; make summary_count"
%
\newcommand{\SummaryStartHere}{}
\newcommand{\SummaryEndHere}{}
% In case anyone breaks the build by not including images
\let\includegraphicsoriginal\includegraphics
\renewcommand{\includegraphics}[2][width=\textwidth]{
\IfFileExists{#2}{\includegraphicsoriginal[#1]{#2}}
{\includegraphicsoriginal[#1]{figures/confusedSad.jpg}}}