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

Contents of /trunk/doc/user/guide_defs.tex

Parent Directory Parent Directory | Revision Log Revision Log


Revision 100 - (show annotations)
Wed Dec 15 03:48:48 2004 UTC (14 years, 11 months ago) by jgs
Original Path: trunk/esys2/doc/user/guide_defs.tex
File MIME type: application/x-tex
File size: 2707 byte(s)
*** empty log message ***

1 % $Id$
2
3 \usepackage{epsfig}
4 \usepackage{graphicx,color}
5 \usepackage{makeidx} % handle the index properly
6 \usepackage{xspace} % handle spaces after commands more nicely
7 % use the ams math stuff, as it makes the maths easier to code, and
8 % nicer output than the standard LaTeX stuff
9 \usepackage{amsmath,amsfonts,amssymb} % this is handy for mathematicians and physicists
10 % see http://www.ams.org/tex/amslatex.html
11 \usepackage{alltt} % handy verbatim stuff
12
13
14 % define some handy commands for escript stuff
15 \newcommand{\ESyS}{\module{ESyS}\xspace}
16 \newcommand{\escript}{\module{escript}\xspace}
17 \newcommand{\finley}{\module{finley}\xspace}
18 \newcommand{\linearPDE}{\class{linearPDE}\xspace}
19 \newcommand{\Data}{\class{Data}\xspace}
20
21 % default width for figures
22 \newcommand{\figwidth}{100mm}
23
24 % commands useful in cross-referencing
25 \newcommand {\Ref}[1] {Reference~\cite{#1}}
26 \newcommand {\Sec}[1] {Section~\ref{#1}}
27 \newcommand {\App}[1] {Appendix~\ref{#1}}
28 \newcommand {\Chap}[1] {Chapter~\ref{#1}}
29 \newcommand {\etal} {\emph{~et~al.}}
30 \newcommand {\fig}[1] {Figure~\ref{#1}}
31 \newcommand {\eqn}[1] {Equation~(\ref{#1})}
32 \newcommand {\tab}[1] {Table~\ref{#1}}
33
34 % improved version of caption handling
35 \usepackage{ccaption}
36 \captionnamefont{\scshape}
37 \captionstyle{}
38 \makeatletter
39 \renewcommand{\fnum@figure}[1]{\quad\small\textsc{\figurename~\thefigure}:}
40 \renewcommand{\@makecaption}[2]{%
41 \vskip\abovecaptionskip
42 \sbox\@tempboxa{#1: #2}%
43 \ifdim \wd\@tempboxa >\hsize
44 \def\baselinestretch{1}\@normalsize
45 #1: #2\par
46 \def\baselinestretch{1.5}\@normalsize
47 \else
48 \global \@minipagefalse
49 \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
50 \fi
51 \vskip\belowcaptionskip}
52 \makeatother
53
54 \usepackage{fancyvrb} % fancy verbatim stuff. Needed so code below goes
55 %%% this code grabbed from the PyScript docs
56 %%% pyscript.sourceforge.net
57
58 % --------------------------------------------------------------
59 % Code format within \Verb
60 % --------------------------------------------------------------
61
62 \definecolor{pycolor}{rgb}{0,0.4,0}
63
64 \DefineVerbatimEnvironment{python}{Verbatim}
65 {frame=leftline,framerule=.5mm,rulecolor=\color{pycolor},
66 formatcom=\color{pycolor}\small,fontshape=rm}
67
68 %\DefineShortVerb[formatcom=\color{dgreen}\small,fontshape=sl]{\|}
69
70 \RecustomVerbatimCommand{\Verb}{Verb}{formatcom=\color{pycolor}\small,fontshape=rm}
71
72 %%% end of grabbed code
73
74 % this is for when one uses pdflatex and therefore needs to load pdf
75 % figures into \includegraphics
76 \ifpdf
77 \DeclareGraphicsExtensions{.pdf} % this command defined in graphicx
78 \pdfcompresslevel=9 % 0: no compression, 9: highest compression
79 % or, set compress_level 9 in file pdftex.cfg
80 \else
81 \DeclareGraphicsExtensions{.eps}
82 \fi

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.26