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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2921 - (hide annotations)
Thu Feb 4 01:42:47 2010 UTC (9 years, 8 months ago) by jfenwick
File MIME type: application/x-tex
File size: 16487 byte(s)
Bringing the rest of the branch (doh) up to trunk revision 2917

1 ksteube 1811
2     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 ksteube 1316 %
4 jfenwick 2921 % Copyright (c) 2003-2010 by University of Queensland
5 ksteube 1811 % Earth Systems Science Computational Center (ESSCC)
6     % http://www.uq.edu.au/esscc
7 gross 625 %
8 ksteube 1811 % Primary Business: Queensland, Australia
9     % Licensed under the Open Software License version 3.0
10     % http://www.opensource.org/licenses/osl-3.0.php
11 gross 625 %
12 ksteube 1811 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 jgs 82
14 ksteube 1811
15 lgraham 2128 \usepackage{subfigure}
16 jgs 82 \usepackage{epsfig}
17     \usepackage{graphicx,color}
18     \usepackage{makeidx} % handle the index properly
19     \usepackage{xspace} % handle spaces after commands more nicely
20     % use the ams math stuff, as it makes the maths easier to code, and
21     % nicer output than the standard LaTeX stuff
22 gross 2573 \usepackage{amsmath,amsfonts,amssymb} % this is handy for mathematicians and physici
23     % see http://www.ams.org/tex/amslatex.html
24 jgs 82 \usepackage{alltt} % handy verbatim stuff
25    
26    
27     % define some handy commands for escript stuff
28 gross 565 \newcommand{\LINUX}{{\it Linux}\xspace}
29 gross 2316 \newcommand{\WINDOWS}{{\it MS Windows}\xspace}
30     \newcommand{\PYTHON}{{\it python}\xspace}
31 jfenwick 2331 % \newcommand{\netCDF}{{\it netCDF}\cite{NETCDF}\index{netCDF} \xspace}
32     \newcommand{\netCDF}{{\it netCDF}\index{netCDF}\xspace}
33 jgs 107 \newcommand{\escript}{\module{esys.escript}\xspace}
34     \newcommand{\finley}{\module{esys.finley}\xspace}
35 gross 999 \newcommand{\esys}{\module{esys}\xspace}
36 gross 565 \newcommand{\pyvisi}{\module{esys.pyvisi}\xspace}
37 gross 993 \newcommand{\pycad}{\module{esys.pycad}\xspace}
38 gross 999 \newcommand{\gmsh}{\module{esys.pycad.gmsh}\xspace}
39     \newcommand{\gmshextern}{{\it Gmsh}\cite{GMSH}\index{Gmsh} \xspace}
40 gross 2580 \newcommand{\SCIPY}{{\it SciPy}\cite{SCIPY}\index{SciPy} \xspace}
41 gross 2316 \newcommand{\env}[1]{\textbf{\mbox{#1}}\index{Environment!#1}}
42 jfenwick 2331 % \newcommand{\MPI}{{\it MPI}\xspace\index{Message Passing Interface!MPI}\cite{MPI}\xspace}
43     % \newcommand{\OPENMP}{{\it OpenMP}\xspace\index{OpenMP!threading}\cite{OPENMP}\xspace}
44 jfenwick 2909 \newcommand{\MPI}{{\it MPI}\index{Message Passing Interface!MPI}\xspace}
45 jfenwick 2331 \newcommand{\OPENMP}{{\it OpenMP}\xspace\index{OpenMP!threading}\xspace}
46 gross 565 \newcommand{\linearPDEs}{\module{esys.escript.linearPDEs}\xspace}
47 jgs 102 \newcommand{\LinearPDE}{\class{LinearPDE}\xspace}
48 jgs 121 \newcommand{\modelframe}{\module{esys.modelframe}\xspace}
49 gross 2864 \newcommand{\pdetools}{\module{esys.escript.pdetools}\xspace}
50 jfenwick 2331 \newcommand{\esysxml}{{\it esysxml}}
51 gross 565
52 gross 2474 \newcommand{\SolverOptions}{\class{SolverOptions}\xspace}
53 jgs 102 \newcommand{\Poisson}{\class{Poisson}\xspace}
54 gross 568 \newcommand{\Helmholtz}{\class{Helmholtz}\xspace}
55 gross 653 \newcommand{\Lame}{\class{Lame}\xspace}
56 jgs 82 \newcommand{\Data}{\class{Data}\xspace}
57 jfenwick 1955 \newcommand{\EmptyData}{empty \class{Data}\index{empty Data}\xspace}
58 jgs 102 \newcommand{\Domain}{\class{Domain}\xspace}
59 gross 2580 \newcommand{\gnuplot}{{\it gnuplot} \cite{GNUPLOT}\index{visualization!gnuplot}\index{gnuplot}}
60 jgs 102 \newcommand{\finleyelement}[1]{{\it #1}\index{finley!#1}}
61     \newcommand{\False}{\constant{False}\xspace}
62     \newcommand{\True}{\constant{True}\xspace}
63 gross 2573 \newcommand{\PCG}{\member{SolverOptions.PCG}\xspace\index{linear solver!PCG}\index{PCG}}
64     \newcommand{\BiCGStab}{\member{SolverOptions.BICGSTAB}\xspace\index{linear solver!BiCGStab}\index{BiCGStab}}
65     \newcommand{\Direct}{\member{SolverOptions.DIRECT}\xspace\index{linear solver!Direct}\index{Direct solver}}
66     \newcommand{\GMRES}{\member{SolverOptions.GMRES}\xspace\index{linear solver!GMRES}\index{GMRES}}
67     \newcommand{\PRESTWENTY}{\member{SolverOptions.PRES20}\xspace\index{linear solver!PRES20}\index{PRES20}}
68     \newcommand{\JACOBI}{\member{SolverOptions.JACOBI}\xspace\index{preconditioner!Jacobi}\index{Jacobi}}
69     \newcommand{\ILU}{\member{SolverOptions.ILU0}\xspace\index{preconditioner!ILU0}\index{ILU0}}
70     \newcommand{\ILUT}{\member{SolverOptions.ILUT}\xspace\index{preconditioner!ILUT}\index{ILUT}}
71     \newcommand{\RILU}{\member{SolverOptions.RILU}\xspace\index{preconditioner!RILU}\index{RILU}}
72     \newcommand{\LUMPING}{\member{SolverOptions.LUMPING}\xspace\index{linear solver!lumping}\index{lumping}}
73     \newcommand{\NOREORDERING}{\member{SolverOptions.NO\hackscore REORDERING}\xspace}
74     \newcommand{\MINIMUMFILLIN}{\member{SolverOptions.MINIMUM\hackscore FILL\hackscore IN}\xspace
75     \index{linear solver!minimum fill-in ordering}\index{minimum fill-in ordering}}
76     \newcommand{\NESTEDDESCTION}{\member{SolverOptions.NESTED\hackscore DISSECTION}\xspace\index{linear solver!nested dissection ordering}\index{nested dissection}}
77     \newcommand{\AMG}{\member{SolverOptions.AMG}\xspace\index{linear solver!AMG}\index{algebraic Multi-grid}\index{AMG}}
78     \newcommand{\GAUSSSEIDEL}{\member{SolverOptions.GAUSS\hackscore SEIDEL}\xspace\index{linear solver!Gauss-Seidel}\index{preconditioner!Gauss-Seidel}\index{Gauss-Seidel Scheme}}
79 gross 2558 \newcommand{\MKL}{\texttt{MKL}\xspace\index{packages!MKL}\index{MKL}}
80     \newcommand{\UMFPACK}{\texttt{UMFPACK}\xspace\index{packages!UMFPACK}\index{UMFPACK}}
81     \newcommand{\PASO}{\texttt{PASO}\xspace\index{packages!PASO}\index{PASO}}
82 jgs 82
83 jgs 102 \newcommand{\FunctionSpace}{\class{FunctionSpace}\xspace}
84     \newcommand{\Operator}{\class{Operator}\xspace}
85     \newcommand{\SolutionFS}{solution \class{FunctionSpace}\index{solution}\xspace}
86     \newcommand{\ReducedSolutionFS}{reduced solution \class{FunctionSpace}\index{solution!reduced}\xspace}
87     \newcommand{\FunctionOnBoundary}{boundary \class{FunctionSpace}\xspace}
88     \newcommand{\Function}{general \class{FunctionSpace}\xspace}
89     \newcommand{\FunctionOnContactZero}{contact \class{FunctionSpace} on side 0\xspace}
90     \newcommand{\FunctionOnContactOne}{contact \class{FunctionSpace} on side 1\xspace}
91     \newcommand{\ContinuousFunction}{continuous \class{FunctionSpace}\xspace}
92 gross 565 \newcommand{\RankOne}{{rank-1 \Data object}\xspace}
93 jgs 102 \newcommand{\RankTwo}{{rank-2 \Data object}\xspace}
94     \newcommand{\RankThree}{{rank-3 \Data object}\xspace}
95     \newcommand{\RankFour}{{rank-4 \Data object}\xspace}
96 gross 660 \newcommand{\Tensor}{{tensor \Data object}\xspace}
97     \newcommand{\Vector}{{vector \Data object}\xspace}
98 jgs 102 \newcommand{\Scalar}{{scalar \Data object}\xspace}
99 jfenwick 1955 \newcommand{\DataSample}{{data sample}\index{data sample}\xspace}
100     \newcommand{\DataSamplePoints}{{data sample points}\index{data sample!points}\xspace}
101 jfenwick 2463 \newcommand{\numpy}{\module{numpy}\xspace}
102     \newcommand{\numpyNDA}{\module{numpy.\class{ndarray}\xspace}}
103    
104 jgs 102 \newcommand{\Shape}{shape\xspace\index{shape}}
105 gross 565 \newcommand{\Rank}{rank\xspace\index{shape}}
106 jgs 102 \newcommand{\ExampleDirectory}{example directory\xspace}
107 gross 2446 \newcommand{\ReferenceGuide}{\url{http://esys.esscc.uq.edu.au/docs.html}\xspace}
108 gross 999 \newcommand{\Point}{\class{Point} \xspace}
109     \newcommand{\PropertySet}{\class{PropertySet} \xspace}
110     \newcommand{\Design}{\class{Design} \xspace}
111     \newcommand{\TagMap}{\class{TagMap} \xspace}
112     \newcommand{\ManifoldOneD}{\class{Manifold1D} \xspace}
113     \newcommand{\ManifoldTwoD}{\class{Manifold2D} \xspace}
114     \newcommand{\ManifoldThreeD}{\class{Manifold3D} \xspace}
115 jgs 102
116 jongui 879 % handy commands for pyvisi
117 gross 2574 \newcommand{\VTK}{{\it VTK}\index{visualization!VTK}\index{VTK}\xspace}
118     \newcommand{\MATPLOTLIB}{\module{matplotlib}\index{visualization!matplotlib}\index{matplotlib}\xspace}
119     \newcommand{\VTKUrl}{\url{http://www.vtk.org/}\index{visualization!VTK}\index{VTK}\xspace}
120     \newcommand{\VisIt}{{\it VisIt}\index{visualization!VisIt}\index{VisIt}\xspace}
121     \newcommand{\mayavi}{{\it mayavi}\index{visualization!mayavi}\index{mayavi}\xspace}
122     \newcommand{\OpenDX}{{\it OpenDX} \index{visualization!OpenDX}\index{OpenDX}\cite{OPENDX}\xspace}
123    
124 jongui 879 \newcommand{\Scene}{\class{Scene}\xspace}
125     \newcommand{\Camera}{\class{Camera}\xspace}
126 jongui 886 \newcommand{\Light}{\class{Light}\xspace}
127 jongui 1035 \newcommand{\DataCollector}{\class{DataCollector}\xspace}
128     \newcommand{\ImageReader}{\class{ImageReader}\xspace}
129     \newcommand{\TextTwoD}{\class{Text2D}\xspace}
130     \newcommand{\ActorTwoD}{\class{Actor2D}\xspace}
131     \newcommand{\ActorThreeD}{\class{Actor3D}\xspace}
132     \newcommand{\Transform}{\class{Transform}\xspace}
133     \newcommand{\Clipper}{\class{Clipper}\xspace}
134 jongui 879 \newcommand{\Map}{\class{Map}\xspace}
135 jongui 1035 \newcommand{\MapOnPlaneCut}{\class{MapOnPlaneCut}\xspace}
136     \newcommand{\MapOnPlaneClip}{\class{MapOnPlaneClip}\xspace}
137 jongui 886 \newcommand{\MapOnScalarClip}{\class{MapOnScalarClip}\xspace}
138 jongui 1211 \newcommand{\MapOnScalarClipWithRotation}{\class{MapOnScalarClipWithRotation}\xspace}
139 jongui 1035 \newcommand{\GlyphThreeD}{\class{Glyph3D}\xspace}
140 jongui 1078 \newcommand{\MaskPoints}{\class{MaskPoints}\xspace}
141 jongui 1035 \newcommand{\Velocity}{\class{Velocity}\xspace}
142     \newcommand{\VelocityOnPlaneCut}{\class{VelocityOnPlaneCut}\xspace}
143     \newcommand{\VelocityOnPlaneClip}{\class{VelocityOnPlaneClip}\xspace}
144     \newcommand{\Sphere}{\class{Sphere}\xspace}
145     \newcommand{\TensorGlyph}{\class{TensorGlyph}\xspace}
146     \newcommand{\Ellipsoid}{\class{Ellipsoid}\xspace}
147     \newcommand{\EllipsoidOnPlaneCut}{\class{EllipsoidOnPlaneCut}\xspace}
148     \newcommand{\EllipsoidOnPlaneClip}{\class{EllipsoidOnPlaneClip}\xspace}
149     \newcommand{\ContourModule}{\class{ContourModule}\xspace}
150 jongui 879 \newcommand{\Contour}{\class{Contour}\xspace}
151 jongui 1035 \newcommand{\ContourOnPlaneCut}{\class{ContourOnPlaneCut}\xspace}
152     \newcommand{\ContourOnPlaneClip}{\class{ContourOnPlaneClip}\xspace}
153     \newcommand{\PointSource}{\class{PointSource}\xspace}
154     \newcommand{\StreamLineModule}{\class{StreamLineModule}\xspace}
155     \newcommand{\Tube}{\class{Tube}\xspace}
156     \newcommand{\StreamLine}{\class{StreamLine}\xspace}
157     \newcommand{\Warp}{\class{Warp}\xspace}
158 jongui 879 \newcommand{\Carpet}{\class{Carpet}\xspace}
159 jongui 1035 \newcommand{\PlaneSource}{\class{PlaneSource}\xspace}
160     \newcommand{\Image}{\class{Image}\xspace}
161 jongui 1112 \newcommand{\Logo}{\class{Logo}\xspace}
162     \newcommand{\ImageReslice}{\class{ImageReslice}\xspace}
163 jongui 879 \newcommand{\Position}{\class{Position}\xspace}
164 jongui 1194 \newcommand{\DataSetMapper}{\class{DataSetMapper}\xspace}
165     \newcommand{\Legend}{\class{Legend}\xspace}
166     \newcommand{\ScalarBar}{\class{ScalarBar}\xspace}
167     \newcommand{\Movie}{\class{Movie}\xspace}
168 jongui 1205 \newcommand{\CubeSource}{\class{CubeSource}\xspace}
169     \newcommand{\Rectangle}{\class{Rectangle}\xspace}
170     \newcommand{\LocalPosition}{\class{LocalPosition}\xspace}
171     \newcommand{\GlobalPosition}{\class{GlobalPosition}\xspace}
172 jongui 1211 \newcommand{\Rotation}{\class{Rotation}\xspace}
173 jongui 1081 \newcommand{\thumbnailwidth}{50mm}
174 jgs 102
175 jgs 82 % default width for figures
176     \newcommand{\figwidth}{100mm}
177     % commands useful in cross-referencing
178     \newcommand {\Ref}[1] {Reference~\cite{#1}}
179     \newcommand {\Sec}[1] {Section~\ref{#1}}
180     \newcommand {\App}[1] {Appendix~\ref{#1}}
181     \newcommand {\Chap}[1] {Chapter~\ref{#1}}
182     \newcommand {\etal} {\emph{~et~al.}}
183     \newcommand {\fig}[1] {Figure~\ref{#1}}
184     \newcommand {\eqn}[1] {Equation~(\ref{#1})}
185     \newcommand {\tab}[1] {Table~\ref{#1}}
186    
187 jgs 102 % this stops one figure taking up a whole page and lets more text onto
188     % the one page when a figure exists
189     \renewcommand{\floatpagefraction}{0.8} % Default = 0.5
190    
191 jgs 82 % improved version of caption handling
192     \usepackage{ccaption}
193     \captionnamefont{\scshape}
194     \captionstyle{}
195     \makeatletter
196     \renewcommand{\fnum@figure}[1]{\quad\small\textsc{\figurename~\thefigure}:}
197     \renewcommand{\@makecaption}[2]{%
198     \vskip\abovecaptionskip
199     \sbox\@tempboxa{#1: #2}%
200     \ifdim \wd\@tempboxa >\hsize
201     \def\baselinestretch{1}\@normalsize
202     #1: #2\par
203     \def\baselinestretch{1.5}\@normalsize
204     \else
205     \global \@minipagefalse
206     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
207     \fi
208     \vskip\belowcaptionskip}
209     \makeatother
210    
211 gross 572 % \usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes
212 jgs 82 %%% this code grabbed from the PyScript docs
213     %%% pyscript.sourceforge.net
214    
215     % --------------------------------------------------------------
216     % Code format within \Verb
217     % --------------------------------------------------------------
218    
219 gross 572 % \definecolor{pycolor}{rgb}{0,0.4,0}
220 jgs 82
221 jgs 102 %% \DefineVerbatimEnvironment{python}{Verbatim}
222     %% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},
223     %% formatcom=\color{pycolor}\small,fontshape=rm}
224 jgs 82
225     %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}
226    
227 gross 572 % \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}
228 jgs 82
229     %%% end of grabbed code
230    
231     % this is for when one uses pdflatex and therefore needs to load pdf
232     % figures into \includegraphics
233     \ifpdf
234     \DeclareGraphicsExtensions{.pdf} % this command defined in graphicx
235     \pdfcompresslevel=9 % 0: no compression, 9: highest compression
236     % or, set compress_level 9 in file pdftex.cfg
237     \else
238     \DeclareGraphicsExtensions{.eps}
239     \fi
240 jgs 102
241     % defines the colour for the background of code examples
242     \definecolor{LightGrey}{gray}{0.9}
243    
244     % add the listings package to pretty print the code output
245     \usepackage{listings}
246    
247 jfenwick 2335
248     %Some colour definitions added to keep pdflatex happy
249     %I make no claim that these values are particularly good
250     \definecolor{Purple}{rgb}{0.7, 0, 0.6}
251     \definecolor{Tan}{rgb}{0.5,0.5,0.5}
252     \definecolor{BrickRed}{rgb}{0.7, 0.2, 0.2}
253 jfenwick 2463 \definecolor{Black}{rgb}{0, 0, 0}
254 jfenwick 2335
255     % All the \color{x} used to be \color[named]{x}
256     %end color defs
257    
258 jgs 102 \lstdefinestyle{myC++}{%
259     %\lstset{%
260     language=C++,
261     showstringspaces=false,
262     basicstyle=\small\ttfamily,
263 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
264     keywordstyle=\color{Purple}\ttfamily,
265     %identifierstyle=\color{Blue}\ttfamily,
266     %functionstyle=\color{Blue}\ttfamily,
267     %typestyle=\color{ForestGreen}\ttfamily,
268     stringstyle=\color{Tan}\ttfamily,%
269 jgs 102 morekeywords={,complex,}%
270     frame=none,%
271     backgroundcolor=\color{LightGrey}%
272     }
273    
274     \lstdefinestyle{myMatlab}{%
275     %\lstset{%
276     language=Matlab,
277     showstringspaces=false,
278     basicstyle=\small\ttfamily,
279 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
280     keywordstyle=\color{Purple}\ttfamily,
281     %identifierstyle=\color{Blue}\ttfamily,
282     %functionstyle=\color{Blue}\ttfamily,
283     %typestyle=\color{ForestGreen}\ttfamily,
284     stringstyle=\color{Tan}\ttfamily,%
285 jgs 102 frame=none,%
286     backgroundcolor=\color{LightGrey}%
287     }
288    
289     \lstdefinestyle{myScilab}{%
290     %\lstset{%
291     language=Scilab,
292     showstringspaces=false,
293     basicstyle=\small\ttfamily,
294 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
295     keywordstyle=\color{Purple}\ttfamily,
296     %identifierstyle=\color{Blue}\ttfamily,
297     %functionstyle=\color{Blue}\ttfamily,
298     %typestyle=\color{ForestGreen}\ttfamily,
299     stringstyle=\color{Tan}\ttfamily,%
300 jgs 102 frame=none,%
301     backgroundcolor=\color{LightGrey}%
302     }
303    
304     \lstdefinestyle{myShell}{%
305     %\lstset{%
306     language=ksh,
307     showstringspaces=false,
308     basicstyle=\small\ttfamily,
309 jfenwick 2335 commentstyle=\color{Black}\ttfamily,
310     keywordstyle=\color{Black}\ttfamily,
311     %identifierstyle=\color{Blue}\ttfamily,
312     %functionstyle=\color{Blue}\ttfamily,
313     %typestyle=\color{ForestGreen}\ttfamily,
314     stringstyle=\color{Black}\ttfamily,%
315 jgs 102 frame=none,%
316     backgroundcolor=\color{LightGrey}%
317     }
318    
319     \lstdefinestyle{myPython}{%
320     %\lstset{%
321     language=python,
322     showstringspaces=false,
323     basicstyle=\small\ttfamily,
324 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
325     keywordstyle=\color{Purple}\ttfamily,
326     %identifierstyle=\color{Blue}\ttfamily,
327     %functionstyle=\color{Blue}\ttfamily,
328     %typestyle=\color{ForestGreen}\ttfamily,
329     stringstyle=\color{Tan}\ttfamily,%
330 jgs 102 frame=none,%
331     %backgroundcolor=\color{LightGrey}%
332     }
333    
334     \lstdefinestyle{myhtml}{%
335     %\lstset{%
336     language=xml,
337     showstringspaces=false,
338     basicstyle=\small\ttfamily,
339 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
340     keywordstyle=\color{Purple}\ttfamily,
341     %identifierstyle=\color{Blue}\ttfamily,
342     %functionstyle=\color{Blue}\ttfamily,
343     %typestyle=\color{ForestGreen}\ttfamily,
344     stringstyle=\color{Tan}\ttfamily,
345 jgs 102 morekeywords={,simulation,prop_dim,error_check,stochastic,%
346     globals,field,dimensions,lattice,domains,samples,vector,%
347     components,fourier_space,sequence,integrate,algorithm,%
348     interval,k_operators,constant,operator_names,vectors,%
349     output,filename,group,sampling,moments,benchmark,use_double,%
350     use_wisdom,use_prefs,binary_output,cycles,filter,post_propagation,%
351     default_value,argv,arg,iterations,cross_propagation,%
352     use_mpi,paths,seed,noises,author,description,name,type,%
353     }
354     frame=none,%
355     %framerule=2pt,%
356     backgroundcolor=\color{LightGrey}%
357     }
358    
359     % this implements producing nice code blocks
360     % it also saves time, typing and
361     % *should* reduce errors in the text by removing doubling up of code
362     \lstnewenvironment{xmdsCode}[1][]{\lstset{style=myhtml}\lstset{#1}}{}
363    
364     % this implements nicely formatted shell code
365     \lstnewenvironment{shellCode}[1][]{\lstset{style=myShell}\lstset{#1}}{}
366    
367     % this implements nicely formatted Perl code
368     \lstnewenvironment{perlCode}[1][]{\lstset{style=myPerl}\lstset{#1}}{}
369    
370     % this implements nicely formatted Python code
371     \lstnewenvironment{python}[1][]{\lstset{style=myPython}\lstset{#1}}{}
372    
373     % this implements nicely formatted C++ code
374     \lstnewenvironment{CCode}{\lstset{style=myC++}}{}
375    
376     % this implements nicely formatted matlab code
377     \lstnewenvironment{matlabCode}{\lstset{style=myMatlab}}{}
378    
379     % this implements nicely formatted scilab code
380     \lstnewenvironment{scilabCode}{\lstset{style=myScilab}}{}
381    
382 jfenwick 2338 %Ensures that latex doesn't have an error if we don't specify the version
383     \providecommand{\RepVersion}{Unknown\xspace}
384     % to set this value use:
385     % (pdf)latex '\newcommand{\RepVersion}{version\xspace}\input{guide.tex}'
386 gross 2372 % as your command-line

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26