/[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 3301 by jfenwick, Mon Oct 25 01:27:54 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{bigdef}[1]{%
58  \newenvironment{methoddesc}[3][{}]{\begin{description}\item[\textbf{#2}(#3)]\mbox{}\\}{\end{description}}  \noindent
59  \newenvironment{funcdesc}[2]{\begin{description}\item[\textbf{#1}(#2)]\mbox{}\\}{\end{description}}  \setlength{\hangindent}{2cm}
60    \textbf{#1}
61    
62    \setlength{\hangindent}{1cm}%
63    \setlength{\hangafter}{0}%
64    \noindent%
65    }%
66    {%
67    
68    \vspace{0.5cm}
69    }
70    
71    \newenvironment{classdesc}[2]{%
72    \begin{bigdef}{class #1}}{\end{bigdef}}
73    
74    \newenvironment{methoddesc}[3][{}]{%
75    \begin{bigdef}{#2(#3)}}{\end{bigdef}}
76    \newenvironment{funcdesc}[2]{%
77    \begin{bigdef}{#1(#2)}%
78    }
79    {%
80    \end{bigdef}
81    }
82    
83    % {
84    % \begin{bigdef}[#1(#2)]
85    % \noindent
86    % \setlength{\hangindent}{2cm}
87    % \textbf{#1(#2)}
88    %
89    % }
90    % \setlength{\hangindent}{1cm}
91    % \setlength{\hangafter}{0}
92    % \noindent
93    % }%
94    % {%
95    %
96    % \mbox{}\\
97    % }
98    
99    \setlength{\itemindent}{-1cm}\setlength{\leftmargin}{1cm}
100    
101  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}
102  \newenvironment{datadesc}[1]{\begin{description}\item[\textbf{#1}]\mbox{}\\}{\end{description}}  \newenvironment{datadesc}[1]{\begin{description}\item[\textbf{#1}]\mbox{}\\}{\end{description}}
103    
# Line 70  Line 111 
111  \newcommand{\constant}[1]{\textsl{#1}}  \newcommand{\constant}[1]{\textsl{#1}}
112  \newcommand{\method}[1]{\texttt{#1}}  \newcommand{\method}[1]{\texttt{#1}}
113  \newcommand{\member}[1]{\texttt{#1}}  \newcommand{\member}[1]{\texttt{#1}}
114  \newcommand{\code}[1]{\mbox{\texttt{#1}}}   % Because people try to put code in maths mode  \newcommand{\code}[1]{%
115    \ifmmode%
116    \mbox{\texttt{#1}}%
117    \else%
118    \texttt{#1}%
119    \fi    % Because people try to put code in maths mode
120    }
121    
122  \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}
123    

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

  ViewVC Help
Powered by ViewVC 1.1.26