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