/[escript]/branches/stage3.1/doc/user/guide_defs.tex
ViewVC logotype

Diff of /branches/stage3.1/doc/user/guide_defs.tex

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

revision 2331 by jfenwick, Mon Mar 23 01:18:21 2009 UTC revision 2335 by jfenwick, Thu Mar 26 04:33:44 2009 UTC
# Line 234  Line 234 
234  % add the listings package to pretty print the code output  % add the listings package to pretty print the code output
235  \usepackage{listings}  \usepackage{listings}
236    
237    
238    %Some colour definitions added to keep pdflatex happy
239    %I make no claim that these values are particularly good
240    \definecolor{Purple}{rgb}{0.7, 0, 0.6}
241    \definecolor{Tan}{rgb}{0.5,0.5,0.5}
242    \definecolor{BrickRed}{rgb}{0.7, 0.2, 0.2}
243    
244    % All the \color{x} used to be \color[named]{x}
245    %end color defs
246    
247  \lstdefinestyle{myC++}{%  \lstdefinestyle{myC++}{%
248  %\lstset{%  %\lstset{%
249  language=C++,  language=C++,
250  showstringspaces=false,  showstringspaces=false,
251  basicstyle=\small\ttfamily,  basicstyle=\small\ttfamily,
252  commentstyle=\color[named]{BrickRed}\ttfamily,  commentstyle=\color{BrickRed}\ttfamily,
253  keywordstyle=\color[named]{Purple}\ttfamily,  keywordstyle=\color{Purple}\ttfamily,
254  %identifierstyle=\color[named]{Blue}\ttfamily,  %identifierstyle=\color{Blue}\ttfamily,
255  %functionstyle=\color[named]{Blue}\ttfamily,  %functionstyle=\color{Blue}\ttfamily,
256  %typestyle=\color[named]{ForestGreen}\ttfamily,  %typestyle=\color{ForestGreen}\ttfamily,
257  stringstyle=\color[named]{Tan}\ttfamily,%  stringstyle=\color{Tan}\ttfamily,%
258  morekeywords={,complex,}%  morekeywords={,complex,}%
259  frame=none,%  frame=none,%
260  backgroundcolor=\color{LightGrey}%  backgroundcolor=\color{LightGrey}%
# Line 255  backgroundcolor=\color{LightGrey}% Line 265  backgroundcolor=\color{LightGrey}%
265  language=Matlab,  language=Matlab,
266  showstringspaces=false,  showstringspaces=false,
267  basicstyle=\small\ttfamily,  basicstyle=\small\ttfamily,
268  commentstyle=\color[named]{BrickRed}\ttfamily,  commentstyle=\color{BrickRed}\ttfamily,
269  keywordstyle=\color[named]{Purple}\ttfamily,  keywordstyle=\color{Purple}\ttfamily,
270  %identifierstyle=\color[named]{Blue}\ttfamily,  %identifierstyle=\color{Blue}\ttfamily,
271  %functionstyle=\color[named]{Blue}\ttfamily,  %functionstyle=\color{Blue}\ttfamily,
272  %typestyle=\color[named]{ForestGreen}\ttfamily,  %typestyle=\color{ForestGreen}\ttfamily,
273  stringstyle=\color[named]{Tan}\ttfamily,%  stringstyle=\color{Tan}\ttfamily,%
274  frame=none,%  frame=none,%
275  backgroundcolor=\color{LightGrey}%  backgroundcolor=\color{LightGrey}%
276  }  }
# Line 270  backgroundcolor=\color{LightGrey}% Line 280  backgroundcolor=\color{LightGrey}%
280  language=Scilab,  language=Scilab,
281  showstringspaces=false,  showstringspaces=false,
282  basicstyle=\small\ttfamily,  basicstyle=\small\ttfamily,
283  commentstyle=\color[named]{BrickRed}\ttfamily,  commentstyle=\color{BrickRed}\ttfamily,
284  keywordstyle=\color[named]{Purple}\ttfamily,  keywordstyle=\color{Purple}\ttfamily,
285  %identifierstyle=\color[named]{Blue}\ttfamily,  %identifierstyle=\color{Blue}\ttfamily,
286  %functionstyle=\color[named]{Blue}\ttfamily,  %functionstyle=\color{Blue}\ttfamily,
287  %typestyle=\color[named]{ForestGreen}\ttfamily,  %typestyle=\color{ForestGreen}\ttfamily,
288  stringstyle=\color[named]{Tan}\ttfamily,%  stringstyle=\color{Tan}\ttfamily,%
289  frame=none,%  frame=none,%
290  backgroundcolor=\color{LightGrey}%  backgroundcolor=\color{LightGrey}%
291  }  }
# Line 285  backgroundcolor=\color{LightGrey}% Line 295  backgroundcolor=\color{LightGrey}%
295  language=ksh,  language=ksh,
296  showstringspaces=false,  showstringspaces=false,
297  basicstyle=\small\ttfamily,  basicstyle=\small\ttfamily,
298  commentstyle=\color[named]{Black}\ttfamily,  commentstyle=\color{Black}\ttfamily,
299  keywordstyle=\color[named]{Black}\ttfamily,  keywordstyle=\color{Black}\ttfamily,
300  %identifierstyle=\color[named]{Blue}\ttfamily,  %identifierstyle=\color{Blue}\ttfamily,
301  %functionstyle=\color[named]{Blue}\ttfamily,  %functionstyle=\color{Blue}\ttfamily,
302  %typestyle=\color[named]{ForestGreen}\ttfamily,  %typestyle=\color{ForestGreen}\ttfamily,
303  stringstyle=\color[named]{Black}\ttfamily,%  stringstyle=\color{Black}\ttfamily,%
304  frame=none,%  frame=none,%
305  backgroundcolor=\color{LightGrey}%  backgroundcolor=\color{LightGrey}%
306  }  }
# Line 300  backgroundcolor=\color{LightGrey}% Line 310  backgroundcolor=\color{LightGrey}%
310  language=python,  language=python,
311  showstringspaces=false,  showstringspaces=false,
312  basicstyle=\small\ttfamily,  basicstyle=\small\ttfamily,
313  commentstyle=\color[named]{BrickRed}\ttfamily,  commentstyle=\color{BrickRed}\ttfamily,
314  keywordstyle=\color[named]{Purple}\ttfamily,  keywordstyle=\color{Purple}\ttfamily,
315  %identifierstyle=\color[named]{Blue}\ttfamily,  %identifierstyle=\color{Blue}\ttfamily,
316  %functionstyle=\color[named]{Blue}\ttfamily,  %functionstyle=\color{Blue}\ttfamily,
317  %typestyle=\color[named]{ForestGreen}\ttfamily,  %typestyle=\color{ForestGreen}\ttfamily,
318  stringstyle=\color[named]{Tan}\ttfamily,%  stringstyle=\color{Tan}\ttfamily,%
319  frame=none,%  frame=none,%
320  %backgroundcolor=\color{LightGrey}%  %backgroundcolor=\color{LightGrey}%
321  }  }
# Line 315  frame=none,% Line 325  frame=none,%
325  language=xml,  language=xml,
326  showstringspaces=false,  showstringspaces=false,
327  basicstyle=\small\ttfamily,  basicstyle=\small\ttfamily,
328  commentstyle=\color[named]{BrickRed}\ttfamily,  commentstyle=\color{BrickRed}\ttfamily,
329  keywordstyle=\color[named]{Purple}\ttfamily,  keywordstyle=\color{Purple}\ttfamily,
330  %identifierstyle=\color[named]{Blue}\ttfamily,  %identifierstyle=\color{Blue}\ttfamily,
331  %functionstyle=\color[named]{Blue}\ttfamily,  %functionstyle=\color{Blue}\ttfamily,
332  %typestyle=\color[named]{ForestGreen}\ttfamily,  %typestyle=\color{ForestGreen}\ttfamily,
333  stringstyle=\color[named]{Tan}\ttfamily,  stringstyle=\color{Tan}\ttfamily,
334  morekeywords={,simulation,prop_dim,error_check,stochastic,%  morekeywords={,simulation,prop_dim,error_check,stochastic,%
335    globals,field,dimensions,lattice,domains,samples,vector,%    globals,field,dimensions,lattice,domains,samples,vector,%
336    components,fourier_space,sequence,integrate,algorithm,%    components,fourier_space,sequence,integrate,algorithm,%

Legend:
Removed from v.2331  
changed lines
  Added in v.2335

  ViewVC Help
Powered by ViewVC 1.1.26