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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 317, Wed Aug 18 04:06:35 2010 UTC revision 318, Wed Aug 18 04:11:57 2010 UTC
# Line 14  Line 14 
14    
15  \usepackage{url}  \usepackage{url}
16  \usepackage{graphicx}  \usepackage{graphicx}
17    \usepackage{color}
18  \usepackage{amsmath}  \usepackage{amsmath}
19    \usepackage{stmaryrd}
20    
21    \definecolor{Red}{rgb}{0.9,0.0,0.0}
22    \definecolor{Green}{rgb}{0.0,0.4,0.0}
23    \definecolor{Blue}{rgb}{0.0,0.0,0.9}
24    \definecolor{Purple}{rgb}{0.5,0.0,0.4}
25    \definecolor{Black}{rgb}{0.0,0.0,0.0}
26    \definecolor{Yellow}{rgb}{1.0,1.0, 0.25}
27    \definecolor{Cyan}{rgb}{0.25,1.0, 1.0}
28    
29    % Diderot listings
30    %
31    \usepackage{listings}
32    \lstset{
33      basicstyle=\ttfamily\small\color{Blue},
34      keywordstyle=\bfseries\color{Purple},
35      commentstyle=\itshape\color{Red}}
36    \lstdefinelanguage{Diderot}{%
37       morekeywords={real,%
38          else,for,if,int,return,%
39          actor,image,die,field,in,inf,initially,input,kernel,new,output,stabilize,tensor,update,vec2,vec3,vec4},%
40       morendkeywords={D},
41       otherkeywords={|,@,..,\#},
42       sensitive,%
43       morecomment=[s]{/*}{*/},%
44       morecomment=[l]//,% nonstandard
45       morestring=[b]",%
46       morestring=[b]'}%
47    
48    \lstset{
49      language=Diderot
50    }
51    
52  % GLK added ________________  % GLK added ________________
53  % http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode  % http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode
# Line 33  Line 66 
66  \setlength{\hackwidth}{0.8\columnwidth}  \setlength{\hackwidth}{0.8\columnwidth}
67  % GLK added ^^^^^^^^^^^^^^^^  % GLK added ^^^^^^^^^^^^^^^^
68    
 % code listings  
 %  
 \usepackage{listings}  
 \lstset{basicstyle=\ttfamily\small}  
 \lstdefinelanguage{DSL}{%  
    otherkeywords={@},  
    morekeywords={double,%  
       else,float,for,if,int,long,return,%  
       short,typedef,void,  
       actor,dataset,die,field,foreach,in,initially,kernel,new,stable,update,vec2i,vec3f,vec4f},%  
    morendkeywords={D},  
    sensitive,%  
    morecomment=[s]{/*}{*/},%  
    morecomment=[l]//,% nonstandard  
    morestring=[b]",%  
    morestring=[b]'}%  
   
 \lstset{basicstyle=\ttfamily\small}  
 \lstset{language=DSL}  
   
69  \newcommand{\kw}[1]{\texttt{\textbf{#1}}}  \newcommand{\kw}[1]{\texttt{\textbf{#1}}}
70    
71  % the language is named after the inventor of modern art criticism.  % the language is named after the inventor of modern art criticism.

Legend:
Removed from v.317  
changed lines
  Added in v.318

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