/[escript]/trunk/doc/user/esysdoc.cls
ViewVC logotype

Diff of /trunk/doc/user/esysdoc.cls

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

revision 3294 by jfenwick, Fri Oct 22 01:15:56 2010 UTC revision 3300 by jfenwick, Mon Oct 25 00:22:14 2010 UTC
# Line 8  Line 8 
8    
9  \usepackage[a4paper, left=2.5cm, right=2.5cm, nohead, vcentering, scale=0.8]{geometry}  \usepackage[a4paper, left=2.5cm, right=2.5cm, nohead, vcentering, scale=0.8]{geometry}
10  \usepackage{times}  \usepackage{times}
 % \usepackage{fancyvrb} % Hopefully this will give us our code environments  
11  \usepackage{listings}  \usepackage{listings}
12  \usepackage{ifpdf}  \usepackage{ifpdf}
13    
# Line 42  Line 41 
41  \ChNameVar{\raggedleft\large\sffamily}  % The word chapter  \ChNameVar{\raggedleft\large\sffamily}  % The word chapter
42  \ChNumVar{\raggedleft\bfseries\Large}   % The number of the chapter  \ChNumVar{\raggedleft\bfseries\Large}   % The number of the chapter
43  \ChTitleVar{\raggedleft \Huge\sffamily} % title of the chapter  \ChTitleVar{\raggedleft \Huge\sffamily} % title of the chapter
44    \ChTitleAsIs
45    
46  %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
47  \providecommand{\RepVersion}{Unknown\xspace}  \providecommand{\RepVersion}{Unknown\xspace}
# Line 54  Line 54 
54  %This should be converted into a two arg form so we can have different fonts for different parts  %This should be converted into a two arg form so we can have different fonts for different parts
55  \newcommand*{\programopt}[1]{#1}  \newcommand*{\programopt}[1]{#1}
56    
57  \newenvironment{classdesc}[3]{\begin{description}\item[class #1]\mbox{}\\}{\end{description}}  \newenvironment{classdesc}[2]{\begin{description}\item[class #1]\mbox{}\\}{\end{description}}
58  \newenvironment{methoddesc}[3][{}]{\begin{description}\item[\textbf{#2}(#3)]\mbox{}\\}{\end{description}}  \newenvironment{methoddesc}[3][{}]{\begin{description}\item[\textbf{#2}(#3)]\mbox{}\\}{\end{description}}
59  \newenvironment{funcdesc}[2]{\begin{description}\item[\textbf{#1}(#2)]\mbox{}\\}{\end{description}}  \newenvironment{funcdesc}[2]{%
60    \noindent
61    \begin{list}{}{\setlength{\labelwidth}{0cm}}
62    \item \textbf{#1(#2)}
63    \end{list}
64    \begin{list}{}{}
65    \item
66    }%
67    {%
68    \end{list}%
69    }
70    
71    \setlength{\itemindent}{-1cm}\setlength{\leftmargin}{1cm}
72    
73  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}
74  \newenvironment{datadesc}[1]{\begin{description}\item[\textbf{#1}]\mbox{}\\}{\end{description}}  \newenvironment{datadesc}[1]{\begin{description}\item[\textbf{#1}]\mbox{}\\}{\end{description}}
75    
# Line 70  Line 83 
83  \newcommand{\constant}[1]{\textsl{#1}}  \newcommand{\constant}[1]{\textsl{#1}}
84  \newcommand{\method}[1]{\texttt{#1}}  \newcommand{\method}[1]{\texttt{#1}}
85  \newcommand{\member}[1]{\texttt{#1}}  \newcommand{\member}[1]{\texttt{#1}}
86  \newcommand{\code}[1]{\mbox{\texttt{#1}}}   % Because people try to put code in maths mode  \newcommand{\code}[1]{%
87    \ifmmode%
88    \mbox{\texttt{#1}}%
89    \else%
90    \texttt{#1}%
91    \fi    % Because people try to put code in maths mode
92    }
93    
94  \newenvironment{abstract}{\newpage\mbox{}\vfill\begin{center}\textbf{Abstract}\end{center}}{\vfill\newpage}  \newenvironment{abstract}{\newpage\mbox{}\vfill\begin{center}\textbf{Abstract}\end{center}}{\vfill\newpage}
95    

Legend:
Removed from v.3294  
changed lines
  Added in v.3300

  ViewVC Help
Powered by ViewVC 1.1.26