Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /trunk/doc/whitepaper/defs.tex
ViewVC logotype

View of /trunk/doc/whitepaper/defs.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 318 - (download) (as text) (annotate)
Wed Aug 18 04:11:57 2010 UTC (9 years ago) by jhr
File size: 2929 byte(s)
  Edits
%!TEX root = paper.tex
%
% various LaTeX macros
%

\usepackage{times}
%-------------------------
% the following magic makes the tt font in math mode be the same as the
% normal tt font (i.e., Courier)
%
\SetMathAlphabet{\mathtt}{normal}{OT1}{pcr}{n}{n}
\SetMathAlphabet{\mathtt}{bold}{OT1}{pcr}{bx}{n}
%-------------------------

\usepackage{url}
\usepackage{graphicx}
\usepackage{color}
\usepackage{amsmath}
\usepackage{stmaryrd}

\definecolor{Red}{rgb}{0.9,0.0,0.0}
\definecolor{Green}{rgb}{0.0,0.4,0.0}
\definecolor{Blue}{rgb}{0.0,0.0,0.9}
\definecolor{Purple}{rgb}{0.5,0.0,0.4}
\definecolor{Black}{rgb}{0.0,0.0,0.0}
\definecolor{Yellow}{rgb}{1.0,1.0, 0.25}
\definecolor{Cyan}{rgb}{0.25,1.0, 1.0}

% Diderot listings
%
\usepackage{listings}
\lstset{
  basicstyle=\ttfamily\small\color{Blue},
  keywordstyle=\bfseries\color{Purple},
  commentstyle=\itshape\color{Red}}
\lstdefinelanguage{Diderot}{%
   morekeywords={real,%
      else,for,if,int,return,%
      actor,image,die,field,in,inf,initially,input,kernel,new,output,stabilize,tensor,update,vec2,vec3,vec4},%
   morendkeywords={D},
   otherkeywords={|,@,..,\#},
   sensitive,%
   morecomment=[s]{/*}{*/},%
   morecomment=[l]//,% nonstandard
   morestring=[b]",%
   morestring=[b]'}%

\lstset{
  language=Diderot
}

% GLK added ________________
% http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode
% http://www.tex.ac.uk/tex-archive/macros/latex/contrib/algorithms/algorithms.pdf
\usepackage{subfigure}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{eqparbox}
% http://stackoverflow.com/questions/1744197/formatting-comments-in-latexs-algorithmic-environment
\renewcommand{\algorithmiccomment}[1]{\hfill\eqparbox{COMMENT}{// #1}}
%\usepackage{epsfig}
\usepackage{amsfonts}
\usepackage{bm}
\newcommand{\8}{\!\boldsymbol{:}\!}
\newlength{\hackwidth}
\setlength{\hackwidth}{0.8\columnwidth}
% GLK added ^^^^^^^^^^^^^^^^

\newcommand{\kw}[1]{\texttt{\textbf{#1}}}

% the language is named after the inventor of modern art criticism.
%
\newcommand{\lang}{\textbf{Diderot}}

\newcommand{\NOTE}[1]{%
  \par\leavevmode\noindent\textbf{[[ #1 ]]}\par\leavevmode\noindent}
\newcommand{\CUT}[1]{}
\newcommand{\SIDENOTE}[1]{%
  \marginpar{\tiny\raggedright{#1}}}

\newcommand{\appref}[1]{Appendix~\ref{#1}}
\newcommand{\chapref}[1]{Chapter~\ref{#1}}
\newcommand{\secref}[1]{Section~\ref{#1}}
\newcommand{\tblref}[1]{Table~\ref{#1}}
\newcommand{\figref}[1]{Figure~\ref{#1}}
\newcommand{\listingref}[1]{Listing~\ref{#1}}
\newcommand{\pref}[1]{{page~\pageref{#1}}}
\newcommand{\defref}[1]{Definition~\ref{#1}}
\newcommand{\ruleref}[1]{Rule~\ref{#1}}

\newcommand{\eg}{{\em e.g.}}
\newcommand{\cf}{{\em cf.}}
\newcommand{\ie}{{\em i.e.}}
\newcommand{\etc}{{\em etc.\/}}
\newcommand{\naive}{na\"{\i}ve}
\newcommand{\ala}{{\em \`{a} la\/}}
\newcommand{\etal}{{\em et al.\/}}
\newcommand{\role}{r\^{o}le}
\newcommand{\vs}{{\em vs.}}
\newcommand{\forte}{{fort\'{e}\/}}

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0