2012-02-15 23:11:23 -05:00
|
|
|
% COOPE style
|
|
|
|
|
|
|
|
\usepackage{graphicx}
|
|
|
|
\usepackage[small,bf,justification=justified,singlelinecheck=false]{caption}
|
|
|
|
\usepackage[margin=.7in]{geometry}
|
|
|
|
\usepackage{listings}
|
|
|
|
\usepackage{color}
|
|
|
|
\usepackage{hyperref}
|
2012-02-19 15:26:39 -05:00
|
|
|
\usepackage{cite}
|
2012-02-22 20:18:15 -05:00
|
|
|
\usepackage{multirow}
|
2012-03-05 23:20:29 -05:00
|
|
|
\usepackage{subfig}
|
|
|
|
\usepackage{gnuplottex}
|
|
|
|
\usepackage{epstopdf}
|
2012-02-15 23:11:23 -05:00
|
|
|
|
|
|
|
\hypersetup{colorlinks,
|
|
|
|
citecolor=black,
|
|
|
|
filecolor=black,
|
|
|
|
linkcolor=black,
|
|
|
|
urlcolor=black,
|
|
|
|
bookmarksopen=true,
|
|
|
|
pdftex}
|
|
|
|
|
|
|
|
\definecolor{gray}{rgb}{0.3,0.3,0.3}
|
|
|
|
\definecolor{darkgray}{rgb}{0.2,0.2,0.2}
|
|
|
|
\definecolor{lightgray}{rgb}{0.6,0.6,0.6}
|
|
|
|
|
|
|
|
\newcommand{\jsref}{\textmd Listing~\ref}
|
2012-02-22 20:18:15 -05:00
|
|
|
\newcommand{\fref}{\textmd Figure~\ref}
|
2012-03-01 18:59:40 -05:00
|
|
|
\newcommand{\frefpg}[1]{\textmd Figure~\ref{#1} (page~\pageref{#1})}
|
2012-02-15 23:11:23 -05:00
|
|
|
|
2012-03-01 18:59:23 -05:00
|
|
|
% denotes a non-free reference (to be used in .bib file)
|
|
|
|
\newcommand{\citenf}{\textbf[NF]}
|
|
|
|
|
2012-02-15 23:11:23 -05:00
|
|
|
\lstdefinelanguage{JavaScript}{%
|
|
|
|
keywords={%
|
|
|
|
undefined,null,true,false,NaN,Infinity,return,%
|
|
|
|
try,catch,finally,function,var,if,then,else,%
|
2012-02-18 20:03:59 -05:00
|
|
|
in,while,do,done,case,break,continue,%
|
|
|
|
new,typeof,void,in,instanceof%
|
2012-02-15 23:11:23 -05:00
|
|
|
},
|
|
|
|
keywordstyle=\color{gray},
|
|
|
|
comment=[l]{//},
|
|
|
|
morecomment=[s]{/*}{*/},
|
|
|
|
commentstyle=\color{lightgray}
|
|
|
|
}
|
|
|
|
|
|
|
|
\lstset{%
|
|
|
|
language=JavaScript,
|
|
|
|
aboveskip=12pt,
|
|
|
|
columns=fullflexible,
|
|
|
|
keepspaces=true,
|
|
|
|
basicstyle=\small\ttfamily,
|
|
|
|
xleftmargin=18pt,
|
|
|
|
captionpos=b,
|
|
|
|
abovecaptionskip=12pt,
|
|
|
|
numbers=left,
|
|
|
|
numbersep=10pt,
|
|
|
|
numberstyle=\small\color{darkgray}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{jsex}[2]
|
|
|
|
{%
|
|
|
|
\begin{lstlisting}
|
|
|
|
\captionof{#2}
|
|
|
|
\label{#1}
|
|
|
|
}
|
|
|
|
{%
|
|
|
|
\end{lstlisting}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newenvironment{jsexspan}[2]
|
|
|
|
{%
|
|
|
|
\begin{js*}
|
|
|
|
\caption{#2}
|
|
|
|
\label{lst:#1}
|
|
|
|
\begin{multicols}{2}
|
|
|
|
\columnwidth 10in
|
|
|
|
\small
|
|
|
|
}
|
|
|
|
{%
|
|
|
|
\end{multicols}
|
|
|
|
\end{js*}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\dfn}{\emph}
|
|
|
|
\newcommand{\var}{\texttt}
|
|
|
|
\newcommand{\code}{\texttt}
|
|
|
|
\newcommand{\keyword}{\texttt}
|
|
|
|
\newcommand{\operator}{\texttt}
|
|
|
|
\newcommand{\func}{\texttt}
|
|
|
|
|
|
|
|
\hyphenation{ECMA-Script Java-Script}
|
|
|
|
|