/[escript]/trunk/doc/elist.tex
ViewVC logotype

Annotation of /trunk/doc/elist.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5293 - (hide annotations)
Wed Dec 3 04:28:17 2014 UTC (4 years, 7 months ago) by caltinay
File MIME type: application/x-tex
File size: 4702 byte(s)
added missing copyright headers in user guide plus fixed minor typo.

1 ahallam 3385
2 caltinay 5293 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3     % Copyright (c) 2003-2014 by University of Queensland
4     % http://www.uq.edu.au
5     %
6     % Primary Business: Queensland, Australia
7     % Licensed under the Open Software License version 3.0
8     % http://www.opensource.org/licenses/osl-3.0.php
9     %
10     % Development until 2012 by Earth Systems Science Computational Center (ESSCC)
11     % Development 2012-2013 by School of Earth Sciences
12     % Development from 2014 by Centre for Geoscience Computing (GeoComp)
13     %
14     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 ahallam 3385
16     \usepackage{listing}
17     % defines the colour for the background of code examples
18     \definecolor{LightGrey}{gray}{0.9}
19    
20     %Some colour definitions added to keep pdflatex happy
21     %I make no claim that these values are particularly good
22     \definecolor{Purple}{rgb}{0.7, 0, 0.6}
23     \definecolor{Tan}{rgb}{0.5,0.5,0.5}
24     \definecolor{BrickRed}{rgb}{0.7, 0.2, 0.2}
25     \definecolor{Black}{rgb}{0, 0, 0}
26    
27     % All the \color{x} used to be \color[named]{x}
28     %end color defs
29    
30     \lstdefinestyle{myC++}{%
31     language=C++,
32     showstringspaces=false,
33     basicstyle=\small\ttfamily,
34     commentstyle=\color{BrickRed}\ttfamily,
35     keywordstyle=\color{Purple}\ttfamily,
36     %identifierstyle=\color{Blue}\ttfamily,
37     %functionstyle=\color{Blue}\ttfamily,
38     %typestyle=\color{ForestGreen}\ttfamily,
39     stringstyle=\color{Tan}\ttfamily,%
40     morekeywords={,complex,}%
41     frame=none,%
42     backgroundcolor=\color{LightGrey}%
43     }
44    
45     \lstdefinestyle{myMatlab}{%
46     language=Matlab,
47     showstringspaces=false,
48     basicstyle=\small\ttfamily,
49     commentstyle=\color{BrickRed}\ttfamily,
50     keywordstyle=\color{Purple}\ttfamily,
51     %identifierstyle=\color{Blue}\ttfamily,
52     %functionstyle=\color{Blue}\ttfamily,
53     %typestyle=\color{ForestGreen}\ttfamily,
54     stringstyle=\color{Tan}\ttfamily,%
55     frame=none,%
56     backgroundcolor=\color{LightGrey}%
57     }
58    
59     \lstdefinestyle{myScilab}{%
60     language=Scilab,
61     showstringspaces=false,
62     basicstyle=\small\ttfamily,
63     commentstyle=\color{BrickRed}\ttfamily,
64     keywordstyle=\color{Purple}\ttfamily,
65     %identifierstyle=\color{Blue}\ttfamily,
66     %functionstyle=\color{Blue}\ttfamily,
67     %typestyle=\color{ForestGreen}\ttfamily,
68     stringstyle=\color{Tan}\ttfamily,%
69     frame=none,%
70     backgroundcolor=\color{LightGrey}%
71     }
72    
73     \lstdefinestyle{myShell}{%
74     language=ksh,
75     showstringspaces=false,
76     basicstyle=\small\ttfamily,
77     commentstyle=\color{Black}\ttfamily,
78     keywordstyle=\color{Black}\ttfamily,
79     %identifierstyle=\color{Blue}\ttfamily,
80     %functionstyle=\color{Blue}\ttfamily,
81     %typestyle=\color{ForestGreen}\ttfamily,
82     stringstyle=\color{Black}\ttfamily,%
83     frame=none,%
84     backgroundcolor=\color{LightGrey}%
85     }
86    
87     \lstdefinestyle{myPython}{%
88     language=python,
89     showstringspaces=false,
90     basicstyle=\small\ttfamily,
91     commentstyle=\color{BrickRed}\ttfamily,
92     keywordstyle=\color{Purple}\ttfamily,
93     %identifierstyle=\color{Blue}\ttfamily,
94     %functionstyle=\color{Blue}\ttfamily,
95     %typestyle=\color{ForestGreen}\ttfamily,
96     stringstyle=\color{Tan}\ttfamily,%
97     frame=none,%
98     %backgroundcolor=\color{LightGrey}%
99     }
100    
101     \lstdefinestyle{myhtml}{%
102     language=xml,
103     showstringspaces=false,
104     basicstyle=\small\ttfamily,
105     commentstyle=\color{BrickRed}\ttfamily,
106     keywordstyle=\color{Purple}\ttfamily,
107     %identifierstyle=\color{Blue}\ttfamily,
108     %functionstyle=\color{Blue}\ttfamily,
109     %typestyle=\color{ForestGreen}\ttfamily,
110     stringstyle=\color{Tan}\ttfamily,
111     morekeywords={,simulation,prop_dim,error_check,stochastic,%
112     globals,field,dimensions,lattice,domains,samples,vector,%
113     components,fourier_space,sequence,integrate,algorithm,%
114     interval,k_operators,constant,operator_names,vectors,%
115     output,filename,group,sampling,moments,benchmark,use_double,%
116     use_wisdom,use_prefs,binary_output,cycles,filter,post_propagation,%
117     default_value,argv,arg,iterations,cross_propagation,%
118     use_mpi,paths,seed,noises,author,description,name,type,%
119     }
120     frame=none,%
121     %framerule=2pt,%
122     backgroundcolor=\color{LightGrey}%
123     }
124    
125    
126     % this implements producing nice code blocks
127     % it also saves time, typing and
128     % *should* reduce errors in the text by removing doubling up of code
129     \lstnewenvironment{xmdsCode}[1][]{\lstset{style=myhtml}\lstset{#1}}{}
130    
131     % this implements nicely formatted shell code
132     \lstnewenvironment{shellCode}[1][]{\lstset{style=myShell}\lstset{#1}}{}
133    
134     % this implements nicely formatted Perl code
135     \lstnewenvironment{perlCode}[1][]{\lstset{style=myPerl}\lstset{#1}}{}
136    
137     % this implements nicely formatted Python code
138     \lstnewenvironment{python}[1][]{\lstset{style=myPython}\lstset{#1}}{}
139    
140     % this implements nicely formatted C++ code
141     \lstnewenvironment{CCode}{\lstset{style=myC++}}{}
142    
143     % this implements nicely formatted matlab code
144     \lstnewenvironment{matlabCode}{\lstset{style=myMatlab}}{}
145    
146     % this implements nicely formatted scilab code
147 caltinay 5293 \lstnewenvironment{scilabCode}{\lstset{style=myScilab}}{}

  ViewVC Help
Powered by ViewVC 1.1.26