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

SCM Repository

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

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

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

revision 2635, Mon May 26 14:06:39 2014 UTC revision 2636, Tue May 27 16:18:36 2014 UTC
# Line 29  Line 29 
29    
30  \usepackage[newpage,toc]{manpage}  \usepackage[newpage,toc]{manpage}
31  \usepackage{graphicx}  \usepackage{graphicx}
 \usepackage{color}  
32  \usepackage{amssymb}  \usepackage{amssymb}
33  \usepackage{amsmath}  \usepackage{amsmath}
34  \usepackage{stmaryrd}  \usepackage{stmaryrd}
35    
36  \definecolor{Red}{rgb}{0.9,0.0,0.0}  \usepackage{color}
37    \definecolor{Red}{rgb}{0.9,0.0,0.0}  % fixme
38  \definecolor{Green}{rgb}{0.0,0.4,0.0}  \definecolor{Green}{rgb}{0.0,0.4,0.0}
39  \definecolor{Blue}{rgb}{0.0,0.0,0.9}  \definecolor{Blue}{rgb}{0.0,0.0,0.9}
40    \definecolor{DarkBlue}{rgb}{0.0,0.0,0.75}
41    \definecolor{Midnight}{rgb}{0.0,0.0,0.5}
42  \definecolor{Purple}{rgb}{0.5,0.0,0.4}  \definecolor{Purple}{rgb}{0.5,0.0,0.4}
43  \definecolor{Black}{rgb}{0.0,0.0,0.0}  \definecolor{Black}{rgb}{0.0,0.0,0.0}
44  \definecolor{Yellow}{rgb}{1.0,1.0, 0.25}  \definecolor{Yellow}{rgb}{1.0,1.0, 0.25}
45  \definecolor{Cyan}{rgb}{0.25,1.0, 1.0}  \definecolor{Cyan}{rgb}{0.25,1.0, 1.0}
46    
47  % Diderot listings  \newcommand{\cdColor}{Black}
48    \newcommand{\kwColor}{DarkBlue}
49    \newcommand{\comColor}{Red}
50    
51    % code listings
52  %  %
53  \usepackage{listings}  \usepackage{listings}
54  \lstset{  \lstset{
55    basicstyle=\ttfamily\small\color{Blue},    basicstyle=\ttfamily\scriptsize\color{\cdColor},
56    keywordstyle=\bfseries\color{Purple},    keywordstyle=\color{\kwColor}\bfseries,
57    commentstyle=\itshape\color{Red}}    commentstyle=\color{\comColor}\itshape}
58  \lstdefinelanguage{Diderot}{%  \lstdefinelanguage{Diderot}{%
59    morekeywords={bool,D,die,else,field,identity,if,image,input,in,initially,int,kernel,%    otherkeywords={|,\#},
60      new,output,real,stabilize,strand,string,tensor,update,vec2,vec3,vec4,zeros},%    morekeywords={%
61    otherkeywords={|,||,@,..,\#,\{,\}},%      bool,%
62        die,%
63        else,%
64        false,field,function,%
65        identity,if,image,in,inf,initially,input,int,%
66        kernel,%
67        nan,new,%
68        output,%
69        real,%
70        stabilize,strand,string,%
71        tensor,true,%
72        update,%
73        vec2,vec3,vec4,%
74        zeros},
75      morekeywords=[2]{D},
76    sensitive,%    sensitive,%
77    morecomment=[s]{/*}{*/},%    morecomment=[s]{/*}{*/},%
78    morecomment=[l]//,% nonstandard    morecomment=[l]//,
79    morestring=[b]"%    morestring=[b]"}%
 }%  
80    
81  \lstset{  \lstset{
82    language=Diderot    language=Diderot
83  }  }
84    
85    \newcommand{\CD}[1]{\textcolor{\cdColor}{\texttt{#1}}}
86    \newcommand{\KW}[1]{\textcolor{\kwColor}{\kw{#1}}}
87    \newcommand{\MKW}[1]{\textcolor{\kwColor}{\mkw{#1}}}
88    
89  \newcommand{\appref}[1]{Appendix~\ref{#1}}  \newcommand{\appref}[1]{Appendix~\ref{#1}}
90  \newcommand{\chapref}[1]{Chapter~\ref{#1}}  \newcommand{\chapref}[1]{Chapter~\ref{#1}}
91  \newcommand{\secref}[1]{Section~\ref{#1}}  \newcommand{\secref}[1]{Section~\ref{#1}}

Legend:
Removed from v.2635  
changed lines
  Added in v.2636

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