-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.tex
68 lines (62 loc) · 2.48 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
56
57
58
59
60
61
62
63
64
65
66
67
68
%
% todo
%
\DeclareRobustCommand{\steve}[1]{\todo[fancyline,color=green!40,size=\scriptsize]{\textsf{S: #1}}\xspace}
\DeclareRobustCommand{\kathryn}[1]{\todo[fancyline,color=red!20,size=\scriptsize]{\textsf{K:#1}}\xspace}
% switch these around so the no-op ones are used before submitting
\newcommand{\pending}[1]{\textcolor{red}{#1\xspace}}
\newcommand{\checked}[1]{\textcolor{green}{#1\xspace}}
%\newcommand{\pending}[1]{#1\xspace}
%\newcommand{\checked}[1]{#1\xspace}
%
% benchmarks
%
\newcommand*{\textbm}[1]{\textsf{#1}}
\newcommand{\specjvm}{\textbm{SPECjvm}\xspace}
\newcommand{\jess}{\textbm{jess}\xspace}
\newcommand{\raytrace}{\textbm{raytrace}\xspace}
\newcommand{\db}{\textbm{db}\xspace}
\newcommand{\javac}{\textbm{javac}\xspace}
\newcommand{\jack}{\textbm{jack}\xspace}
\newcommand{\compress}{\textbm{compress}\xspace}
\newcommand{\mpegaudio}{\textbm{mpegaudio}\xspace}
\newcommand{\mtrt}{\textbm{mtrt}\xspace}
\newcommand{\jbb}{\textbm{jbb2000}\xspace}
\newcommand{\specjbb}{\textbm{SPECjbb2000}\xspace}
\newcommand{\newspecjbb}{\textbm{SPECjbb2005}\xspace}
\newcommand{\psjbb}{\textbm{pseudojbb}\xspace}
\newcommand{\pjbb}{\textbm{pjbb2005}\xspace}
\newcommand{\dacapo}{\textbm{DaCapo}\xspace}
\newcommand{\dacapover}{\textbm{DaCapo v.06-10-MR2}\xspace}
\newcommand{\antlr}{\textbm{antlr}\xspace}
\newcommand{\bloat}{\textbm{bloat}\xspace}
\newcommand{\eclipse}{\textbm{eclipse}\xspace}
\newcommand{\fop}{\textbm{fop}\xspace}
\newcommand{\hsqldb}{\textbm{hsqldb}\xspace}
\newcommand{\jython}{\textbm{jython}\xspace}
\newcommand{\pmd}{\textbm{pmd}\xspace}
\newcommand{\xalan}{\textbm{xalan}\xspace}
\newcommand{\chart}{\textbm{chart}\xspace}
\newcommand{\luindex}{\textbm{luindex}\xspace}
\newcommand{\lusearch}{\textbm{lusearch}\xspace}
\newcommand{\lusearchfix}{\textbm{lusearch-fix}\xspace}
\newcommand{\avrora}{\textbm{avrora}\xspace}
\newcommand{\sunflow}{\textbm{sunflow}\xspace}
%
% Stuff for pretty printing the source code using listings.sty
%
\lstloadlanguages{java}
\lstset{
numbers=left,
numberstyle=\tiny\sffamily,
stepnumber=1,
numbersep=1em,
language=java, % the language
basicstyle=\scriptsize\ttfamily, % the basic font family to use
commentstyle=\scriptsize\it\ttfamily,% the font for comments
stringstyle=\ttfamily,
escapechar={\$},
morekeywords={Address, Word, Offset, Extent, ObjectReference}
}
% This command allows us to conviniently put java text inline.
\DeclareRobustCommand{\textjava}[1]{{\lstset{basicstyle=\footnotesize\ttfamily}\lstinline@#1@}}