/[escript]/trunk/doc/cookbook/cookbook_defs.tex
ViewVC logotype

Diff of /trunk/doc/cookbook/cookbook_defs.tex

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

trunk/doc/cookbook/TEXT/cookbook_defs.tex revision 2411 by ahallam, Fri May 8 03:13:15 2009 UTC trunk/doc/cookbook/cookbook_defs.tex revision 2667 by jfenwick, Thu Sep 17 01:49:11 2009 UTC
# Line 1  Line 1 
1    
2  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3  %  %
4  % Copyright (c) 2003-2008 by University of Queensland  % Copyright (c) 2003-2009 by University of Queensland
5  % Earth Systems Science Computational Center (ESSCC)  % Earth Systems Science Computational Center (ESSCC)
6  % http://www.uq.edu.au/esscc  % http://www.uq.edu.au/esscc
7  %  %
# Line 19  Line 19 
19  \usepackage{xspace}   % handle spaces after commands more nicely  \usepackage{xspace}   % handle spaces after commands more nicely
20  % use the ams math stuff, as it makes the maths easier to code, and  % use the ams math stuff, as it makes the maths easier to code, and
21  % nicer output than the standard LaTeX stuff  % nicer output than the standard LaTeX stuff
22  \usepackage{amsmath,amsfonts,amssymb} % this is handy for mathematicians and physicists  \usepackage{amsmath,amsfonts,amssymb} % this is handy for mathematicians and physici % see http://www.ams.org/tex/amslatex.html
                           % see http://www.ams.org/tex/amslatex.html  
23  \usepackage{alltt}   % handy verbatim stuff  \usepackage{alltt}   % handy verbatim stuff
24    \usepackage{textcomp}
25    
26    
27    %Ensures that latex doesn't have an error if we don't specify the version
28    \providecommand{\RepVersion}{Unknown\xspace}
29    
30  %Tony's Commands  %Tony's Commands
31  \newcommand{\editor}[1] {\textit{EDITORIAL: {#1}}}  \newcommand{\editor}[1] {\textit{EDITORIAL: {#1}}}
32  %\newcommand{\eqref}[1] {(\ref{#1})}  %\newcommand{\eqref}[1] {(\ref{#1})}
33  \newcommand{\esc}{\module{escript}\xspace}  \newcommand{\esc}{\module{escript}\xspace}
34    \newcommand{\fileex}[1]{\module{\textbackslash examples\textbackslash {#1}}\xspace}
35    \newcommand{\TODO}[1]{\textbf{TODO}:\xspace\textit{#1} }
36    \newcommand{\TBA}[1]{\textbf{TO BE ADDED: \begin{enumerate} {#1} \end{enumerate}}}
37    \newcommand{\ESCRIPT}{\textit{escript}\xspace}
38    \newcommand{\ESYS}{\textit{esys}\xspace}
39    \newcommand{\FINLEY}{\textit{finley}\xspac}
40    \newcommand{\exf}{\textit{/doc/examples/cookbook/}\xspace}
41    \newcommand{\mayavi}{\textit{Mayavi2}\xspace}
42    
43    %referencing
44    \newcommand{\reffig}[1]{(Figure \ref{#1})}
45    \newcommand{\refeq}[1]{equation \ref{#1}}
46    \newcommand{\refEq}[1]{Equation \ref{#1}}
47    \newcommand{\refCh}[1]{Chapter \ref{#1}}
48    
49    %modules
50    \newcommand{\modesys}{\module{esys}\xspace}
51    \newcommand{\modescript}{\module{esys.escript}\xspace}
52    \newcommand{\modLPDE}{\module{esys.escript.LinearPDEs}\xspace}
53    \newcommand{\modfinley}{\module{esys.finley}\xspace}
54    \newcommand{\modpycad}{\module{esys.pycad}\xspace}
55    \newcommand{\modvtk}{\module{vtk}\xspace}
56    \newcommand{\modnumpy}{\module{numpy}\xspace}
57    \newcommand{\modmpl}{\module{matplotlib}\xspace}
58    \newcommand{\pycad}{\module{esys.pycad}\xspace}
59    \newcommand{\gmsh}{\module{esys.pycad.gmsh}\xspace}
60    \newcommand{\pylab}{\module{pylab}\xspace}
61    \newcommand{\mpl}{\module{matplotlib}\xspace}
62    \newcommand{\numpy}{\module{numpy}\xspace}
63    
64    %list scripts
65    \newcommand{\sslist}[1]{\textit{The scripts referenced in this section are; #1} \newline \newline}
66    
67  % % define some handy commands for escript stuff  % % define some handy commands for escript stuff
68  % \newcommand{\LINUX}{{\it Linux}\xspace}  % \newcommand{\LINUX}{{\it Linux}\xspace}
# Line 152  Line 187 
187  % % \usepackage{fancyvrb}  % fancy verbatim stuff.  Needed so code below goes  % % \usepackage{fancyvrb}  % fancy verbatim stuff.  Needed so code below goes
188  % %%% this code grabbed from the PyScript docs  % %%% this code grabbed from the PyScript docs
189  % %%% pyscript.sourceforge.net  % %%% pyscript.sourceforge.net
190  %  
191  % % --------------------------------------------------------------  % --------------------------------------------------------------
192  % % Code format within \Verb  % Code format within \Verb
193  % % --------------------------------------------------------------  % --------------------------------------------------------------
194  %  
195  % % \definecolor{pycolor}{rgb}{0,0.4,0}  % \definecolor{pycolor}{rgb}{0,0.4,0}
196  %  
197  % %% \DefineVerbatimEnvironment{python}{Verbatim}  %% \DefineVerbatimEnvironment{python}{Verbatim}
198  % %% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},  %% {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},
199  % %% formatcom=\color{pycolor}\small,fontshape=rm}  %% formatcom=\color{pycolor}\small,fontshape=rm}
200  %  
201  % %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}  %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}
202  %  
203  % % \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}  % \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}
204  %  
205  % %%% end of grabbed code  %%% end of grabbed code
206  %  
207  % % this is for when one uses pdflatex and therefore needs to load pdf  % this is for when one uses pdflatex and therefore needs to load pdf
208  % % figures into \includegraphics  % figures into \includegraphics
209  % \ifpdf  % \ifpdf
210  %   \DeclareGraphicsExtensions{.pdf}  % this command defined in graphicx  %   \DeclareGraphicsExtensions{.pdf}  % this command defined in graphicx
211  %   \pdfcompresslevel=9  % 0: no compression, 9: highest compression  %   \pdfcompresslevel=9  % 0: no compression, 9: highest compression
# Line 321  Line 356 
356  %  %
357  % %Ensures that latex doesn't have an error if we don't specify the version  % %Ensures that latex doesn't have an error if we don't specify the version
358  % \providecommand{\RepVersion}{Unknown\xspace}  % \providecommand{\RepVersion}{Unknown\xspace}
359  % % to set this value use:  % to set this value use:
360  % % (pdf)latex '\newcommand{\RepVersion}{version\xspace}\input{guide.tex}'  % (pdf)latex '\newcommand{\RepVersion}{version\xspace}\input{guide.tex}'
361  % % as your command-line  % as your command-line

Legend:
Removed from v.2411  
changed lines
  Added in v.2667

  ViewVC Help
Powered by ViewVC 1.1.26