/[escript]/trunk/doc/user/user_defs.tex
ViewVC logotype

Annotation of /trunk/doc/user/user_defs.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3281 - (hide annotations)
Fri Oct 15 06:52:34 2010 UTC (9 years, 1 month ago) by caltinay
Original Path: trunk/doc/user/guide_defs.tex
File MIME type: application/x-tex
File size: 16721 byte(s)
latex2html doesn't like './' in graphicspath, so removed it.

1 ksteube 1811
2     %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 ksteube 1316 %
4 jfenwick 2881 % 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{graphicx,color}
17     \usepackage{makeidx} % handle the index properly
18     \usepackage{xspace} % handle spaces after commands more nicely
19     % use the ams math stuff, as it makes the maths easier to code, and
20     % nicer output than the standard LaTeX stuff
21 caltinay 3279 \usepackage{amsmath,amsfonts,amssymb} % see http://www.ams.org/tex/amslatex.html
22     \usepackage{alltt} % handy verbatim stuff
23 jgs 82
24 caltinay 3281 \graphicspath{{figures/}}
25 jgs 82
26     % define some handy commands for escript stuff
27 gross 565 \newcommand{\LINUX}{{\it Linux}\xspace}
28 gross 2316 \newcommand{\WINDOWS}{{\it MS Windows}\xspace}
29     \newcommand{\PYTHON}{{\it python}\xspace}
30 jfenwick 2331 % \newcommand{\netCDF}{{\it netCDF}\cite{NETCDF}\index{netCDF} \xspace}
31     \newcommand{\netCDF}{{\it netCDF}\index{netCDF}\xspace}
32 jgs 107 \newcommand{\escript}{\module{esys.escript}\xspace}
33     \newcommand{\finley}{\module{esys.finley}\xspace}
34 gross 999 \newcommand{\esys}{\module{esys}\xspace}
35 gross 565 \newcommand{\pyvisi}{\module{esys.pyvisi}\xspace}
36 gross 993 \newcommand{\pycad}{\module{esys.pycad}\xspace}
37 gross 999 \newcommand{\gmsh}{\module{esys.pycad.gmsh}\xspace}
38     \newcommand{\gmshextern}{{\it Gmsh}\cite{GMSH}\index{Gmsh} \xspace}
39 gross 2580 \newcommand{\SCIPY}{{\it SciPy}\cite{SCIPY}\index{SciPy} \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 jfenwick 2923 \newcommand{\MPI}{{\it MPI}\index{Message Passing Interface!MPI}\xspace}
44 jfenwick 2331 \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 gross 2864 \newcommand{\pdetools}{\module{esys.escript.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 2580 \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 3094 \newcommand{\LOCALGAUSSSEIDEL}{\member{SolverOptions.LOCAL\hackscore 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 caltinay 3278 % handy commands related to visualization
117 gross 2574 \newcommand{\VTK}{{\it VTK}\index{visualization!VTK}\index{VTK}\xspace}
118 caltinay 3278 \newcommand{\SILO}{{\it SILO}\index{visualization!SILO}\index{SILO}\xspace}
119 gross 2574 \newcommand{\MATPLOTLIB}{\module{matplotlib}\index{visualization!matplotlib}\index{matplotlib}\xspace}
120     \newcommand{\VTKUrl}{\url{http://www.vtk.org/}\index{visualization!VTK}\index{VTK}\xspace}
121     \newcommand{\VisIt}{{\it VisIt}\index{visualization!VisIt}\index{VisIt}\xspace}
122     \newcommand{\mayavi}{{\it mayavi}\index{visualization!mayavi}\index{mayavi}\xspace}
123     \newcommand{\OpenDX}{{\it OpenDX} \index{visualization!OpenDX}\index{OpenDX}\cite{OPENDX}\xspace}
124    
125 jongui 879 \newcommand{\Scene}{\class{Scene}\xspace}
126     \newcommand{\Camera}{\class{Camera}\xspace}
127 jongui 886 \newcommand{\Light}{\class{Light}\xspace}
128 jongui 1035 \newcommand{\DataCollector}{\class{DataCollector}\xspace}
129     \newcommand{\ImageReader}{\class{ImageReader}\xspace}
130     \newcommand{\TextTwoD}{\class{Text2D}\xspace}
131     \newcommand{\ActorTwoD}{\class{Actor2D}\xspace}
132     \newcommand{\ActorThreeD}{\class{Actor3D}\xspace}
133     \newcommand{\Transform}{\class{Transform}\xspace}
134     \newcommand{\Clipper}{\class{Clipper}\xspace}
135 jongui 879 \newcommand{\Map}{\class{Map}\xspace}
136 jongui 1035 \newcommand{\MapOnPlaneCut}{\class{MapOnPlaneCut}\xspace}
137     \newcommand{\MapOnPlaneClip}{\class{MapOnPlaneClip}\xspace}
138 jongui 886 \newcommand{\MapOnScalarClip}{\class{MapOnScalarClip}\xspace}
139 jongui 1211 \newcommand{\MapOnScalarClipWithRotation}{\class{MapOnScalarClipWithRotation}\xspace}
140 jongui 1035 \newcommand{\GlyphThreeD}{\class{Glyph3D}\xspace}
141 jongui 1078 \newcommand{\MaskPoints}{\class{MaskPoints}\xspace}
142 jongui 1035 \newcommand{\Velocity}{\class{Velocity}\xspace}
143     \newcommand{\VelocityOnPlaneCut}{\class{VelocityOnPlaneCut}\xspace}
144     \newcommand{\VelocityOnPlaneClip}{\class{VelocityOnPlaneClip}\xspace}
145     \newcommand{\Sphere}{\class{Sphere}\xspace}
146     \newcommand{\TensorGlyph}{\class{TensorGlyph}\xspace}
147     \newcommand{\Ellipsoid}{\class{Ellipsoid}\xspace}
148     \newcommand{\EllipsoidOnPlaneCut}{\class{EllipsoidOnPlaneCut}\xspace}
149     \newcommand{\EllipsoidOnPlaneClip}{\class{EllipsoidOnPlaneClip}\xspace}
150     \newcommand{\ContourModule}{\class{ContourModule}\xspace}
151 jongui 879 \newcommand{\Contour}{\class{Contour}\xspace}
152 jongui 1035 \newcommand{\ContourOnPlaneCut}{\class{ContourOnPlaneCut}\xspace}
153     \newcommand{\ContourOnPlaneClip}{\class{ContourOnPlaneClip}\xspace}
154     \newcommand{\PointSource}{\class{PointSource}\xspace}
155     \newcommand{\StreamLineModule}{\class{StreamLineModule}\xspace}
156     \newcommand{\Tube}{\class{Tube}\xspace}
157     \newcommand{\StreamLine}{\class{StreamLine}\xspace}
158     \newcommand{\Warp}{\class{Warp}\xspace}
159 jongui 879 \newcommand{\Carpet}{\class{Carpet}\xspace}
160 jongui 1035 \newcommand{\PlaneSource}{\class{PlaneSource}\xspace}
161     \newcommand{\Image}{\class{Image}\xspace}
162 jongui 1112 \newcommand{\Logo}{\class{Logo}\xspace}
163     \newcommand{\ImageReslice}{\class{ImageReslice}\xspace}
164 jongui 879 \newcommand{\Position}{\class{Position}\xspace}
165 jongui 1194 \newcommand{\DataSetMapper}{\class{DataSetMapper}\xspace}
166     \newcommand{\Legend}{\class{Legend}\xspace}
167     \newcommand{\ScalarBar}{\class{ScalarBar}\xspace}
168     \newcommand{\Movie}{\class{Movie}\xspace}
169 jongui 1205 \newcommand{\CubeSource}{\class{CubeSource}\xspace}
170     \newcommand{\Rectangle}{\class{Rectangle}\xspace}
171     \newcommand{\LocalPosition}{\class{LocalPosition}\xspace}
172     \newcommand{\GlobalPosition}{\class{GlobalPosition}\xspace}
173 jongui 1211 \newcommand{\Rotation}{\class{Rotation}\xspace}
174 jongui 1081 \newcommand{\thumbnailwidth}{50mm}
175 jgs 102
176 jgs 82 % default width for figures
177     \newcommand{\figwidth}{100mm}
178     % commands useful in cross-referencing
179     \newcommand {\Ref}[1] {Reference~\cite{#1}}
180     \newcommand {\Sec}[1] {Section~\ref{#1}}
181     \newcommand {\App}[1] {Appendix~\ref{#1}}
182     \newcommand {\Chap}[1] {Chapter~\ref{#1}}
183     \newcommand {\etal} {\emph{~et~al.}}
184     \newcommand {\fig}[1] {Figure~\ref{#1}}
185     \newcommand {\eqn}[1] {Equation~(\ref{#1})}
186     \newcommand {\tab}[1] {Table~\ref{#1}}
187    
188 jgs 102 % this stops one figure taking up a whole page and lets more text onto
189     % the one page when a figure exists
190     \renewcommand{\floatpagefraction}{0.8} % Default = 0.5
191    
192 jgs 82 % improved version of caption handling
193     \usepackage{ccaption}
194     \captionnamefont{\scshape}
195     \captionstyle{}
196     \makeatletter
197     \renewcommand{\fnum@figure}[1]{\quad\small\textsc{\figurename~\thefigure}:}
198     \renewcommand{\@makecaption}[2]{%
199     \vskip\abovecaptionskip
200     \sbox\@tempboxa{#1: #2}%
201     \ifdim \wd\@tempboxa >\hsize
202     \def\baselinestretch{1}\@normalsize
203     #1: #2\par
204     \def\baselinestretch{1.5}\@normalsize
205     \else
206     \global \@minipagefalse
207     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
208     \fi
209     \vskip\belowcaptionskip}
210     \makeatother
211    
212 gross 572 % \usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes
213 jgs 82 %%% this code grabbed from the PyScript docs
214     %%% pyscript.sourceforge.net
215    
216     % --------------------------------------------------------------
217     % Code format within \Verb
218     % --------------------------------------------------------------
219    
220 gross 572 % \definecolor{pycolor}{rgb}{0,0.4,0}
221 jgs 82
222 jgs 102 %% \DefineVerbatimEnvironment{python}{Verbatim}
223     %% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},
224     %% formatcom=\color{pycolor}\small,fontshape=rm}
225 jgs 82
226     %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}
227    
228 gross 572 % \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}
229 jgs 82
230     %%% end of grabbed code
231    
232     % this is for when one uses pdflatex and therefore needs to load pdf
233     % figures into \includegraphics
234     \ifpdf
235     \DeclareGraphicsExtensions{.pdf} % this command defined in graphicx
236     \pdfcompresslevel=9 % 0: no compression, 9: highest compression
237     % or, set compress_level 9 in file pdftex.cfg
238     \else
239     \DeclareGraphicsExtensions{.eps}
240     \fi
241 jgs 102
242     % defines the colour for the background of code examples
243     \definecolor{LightGrey}{gray}{0.9}
244    
245     % add the listings package to pretty print the code output
246     \usepackage{listings}
247    
248 jfenwick 2335
249     %Some colour definitions added to keep pdflatex happy
250     %I make no claim that these values are particularly good
251     \definecolor{Purple}{rgb}{0.7, 0, 0.6}
252     \definecolor{Tan}{rgb}{0.5,0.5,0.5}
253     \definecolor{BrickRed}{rgb}{0.7, 0.2, 0.2}
254 jfenwick 2463 \definecolor{Black}{rgb}{0, 0, 0}
255 jfenwick 2335
256     % All the \color{x} used to be \color[named]{x}
257     %end color defs
258    
259 jgs 102 \lstdefinestyle{myC++}{%
260     %\lstset{%
261     language=C++,
262     showstringspaces=false,
263     basicstyle=\small\ttfamily,
264 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
265     keywordstyle=\color{Purple}\ttfamily,
266     %identifierstyle=\color{Blue}\ttfamily,
267     %functionstyle=\color{Blue}\ttfamily,
268     %typestyle=\color{ForestGreen}\ttfamily,
269     stringstyle=\color{Tan}\ttfamily,%
270 jgs 102 morekeywords={,complex,}%
271     frame=none,%
272     backgroundcolor=\color{LightGrey}%
273     }
274    
275     \lstdefinestyle{myMatlab}{%
276     %\lstset{%
277     language=Matlab,
278     showstringspaces=false,
279     basicstyle=\small\ttfamily,
280 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
281     keywordstyle=\color{Purple}\ttfamily,
282     %identifierstyle=\color{Blue}\ttfamily,
283     %functionstyle=\color{Blue}\ttfamily,
284     %typestyle=\color{ForestGreen}\ttfamily,
285     stringstyle=\color{Tan}\ttfamily,%
286 jgs 102 frame=none,%
287     backgroundcolor=\color{LightGrey}%
288     }
289    
290     \lstdefinestyle{myScilab}{%
291     %\lstset{%
292     language=Scilab,
293     showstringspaces=false,
294     basicstyle=\small\ttfamily,
295 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
296     keywordstyle=\color{Purple}\ttfamily,
297     %identifierstyle=\color{Blue}\ttfamily,
298     %functionstyle=\color{Blue}\ttfamily,
299     %typestyle=\color{ForestGreen}\ttfamily,
300     stringstyle=\color{Tan}\ttfamily,%
301 jgs 102 frame=none,%
302     backgroundcolor=\color{LightGrey}%
303     }
304    
305     \lstdefinestyle{myShell}{%
306     %\lstset{%
307     language=ksh,
308     showstringspaces=false,
309     basicstyle=\small\ttfamily,
310 jfenwick 2335 commentstyle=\color{Black}\ttfamily,
311     keywordstyle=\color{Black}\ttfamily,
312     %identifierstyle=\color{Blue}\ttfamily,
313     %functionstyle=\color{Blue}\ttfamily,
314     %typestyle=\color{ForestGreen}\ttfamily,
315     stringstyle=\color{Black}\ttfamily,%
316 jgs 102 frame=none,%
317     backgroundcolor=\color{LightGrey}%
318     }
319    
320     \lstdefinestyle{myPython}{%
321     %\lstset{%
322     language=python,
323     showstringspaces=false,
324     basicstyle=\small\ttfamily,
325 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
326     keywordstyle=\color{Purple}\ttfamily,
327     %identifierstyle=\color{Blue}\ttfamily,
328     %functionstyle=\color{Blue}\ttfamily,
329     %typestyle=\color{ForestGreen}\ttfamily,
330     stringstyle=\color{Tan}\ttfamily,%
331 jgs 102 frame=none,%
332     %backgroundcolor=\color{LightGrey}%
333     }
334    
335     \lstdefinestyle{myhtml}{%
336     %\lstset{%
337     language=xml,
338     showstringspaces=false,
339     basicstyle=\small\ttfamily,
340 jfenwick 2335 commentstyle=\color{BrickRed}\ttfamily,
341     keywordstyle=\color{Purple}\ttfamily,
342     %identifierstyle=\color{Blue}\ttfamily,
343     %functionstyle=\color{Blue}\ttfamily,
344     %typestyle=\color{ForestGreen}\ttfamily,
345     stringstyle=\color{Tan}\ttfamily,
346 jgs 102 morekeywords={,simulation,prop_dim,error_check,stochastic,%
347     globals,field,dimensions,lattice,domains,samples,vector,%
348     components,fourier_space,sequence,integrate,algorithm,%
349     interval,k_operators,constant,operator_names,vectors,%
350     output,filename,group,sampling,moments,benchmark,use_double,%
351     use_wisdom,use_prefs,binary_output,cycles,filter,post_propagation,%
352     default_value,argv,arg,iterations,cross_propagation,%
353     use_mpi,paths,seed,noises,author,description,name,type,%
354     }
355     frame=none,%
356     %framerule=2pt,%
357     backgroundcolor=\color{LightGrey}%
358     }
359    
360     % this implements producing nice code blocks
361     % it also saves time, typing and
362     % *should* reduce errors in the text by removing doubling up of code
363     \lstnewenvironment{xmdsCode}[1][]{\lstset{style=myhtml}\lstset{#1}}{}
364    
365     % this implements nicely formatted shell code
366     \lstnewenvironment{shellCode}[1][]{\lstset{style=myShell}\lstset{#1}}{}
367    
368     % this implements nicely formatted Perl code
369     \lstnewenvironment{perlCode}[1][]{\lstset{style=myPerl}\lstset{#1}}{}
370    
371     % this implements nicely formatted Python code
372     \lstnewenvironment{python}[1][]{\lstset{style=myPython}\lstset{#1}}{}
373    
374     % this implements nicely formatted C++ code
375     \lstnewenvironment{CCode}{\lstset{style=myC++}}{}
376    
377     % this implements nicely formatted matlab code
378     \lstnewenvironment{matlabCode}{\lstset{style=myMatlab}}{}
379    
380     % this implements nicely formatted scilab code
381     \lstnewenvironment{scilabCode}{\lstset{style=myScilab}}{}
382    
383 jfenwick 2338 %Ensures that latex doesn't have an error if we don't specify the version
384     \providecommand{\RepVersion}{Unknown\xspace}
385     % to set this value use:
386     % (pdf)latex '\newcommand{\RepVersion}{version\xspace}\input{guide.tex}'
387 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