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

Diff of /trunk/doc/esysdoc.cls

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

trunk/doc/user/esysdoc.cls revision 3294 by jfenwick, Fri Oct 22 01:15:56 2010 UTC trunk/doc/esysdoc.cls revision 3305 by jfenwick, Mon Oct 25 05:04:22 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 24  Line 23 
23  %Blue was chosen here because it looks ok when printed  %Blue was chosen here because it looks ok when printed
24  \usepackage[pdfborder={0 0 0},pdfdisplaydoctitle=true,linktocpage=false, colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}  \usepackage[pdfborder={0 0 0},pdfdisplaydoctitle=true,linktocpage=false, colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
25    
26    
27  \usepackage{fancyhdr}  \usepackage{fancyhdr}
28  \renewcommand{\footrulewidth}{0.4pt}  \renewcommand{\footrulewidth}{0.4pt}
29  \renewcommand{\headrulewidth}{0pt}  \renewcommand{\headrulewidth}{0pt}
# Line 42  Line 42 
42  \ChNameVar{\raggedleft\large\sffamily}  % The word chapter  \ChNameVar{\raggedleft\large\sffamily}  % The word chapter
43  \ChNumVar{\raggedleft\bfseries\Large}   % The number of the chapter  \ChNumVar{\raggedleft\bfseries\Large}   % The number of the chapter
44  \ChTitleVar{\raggedleft \Huge\sffamily} % title of the chapter  \ChTitleVar{\raggedleft \Huge\sffamily} % title of the chapter
45    \ChTitleAsIs
46    
47  %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
48  \providecommand{\RepVersion}{Unknown\xspace}  \providecommand{\RepVersion}{Unknown\xspace}
# Line 54  Line 55 
55  %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
56  \newcommand*{\programopt}[1]{#1}  \newcommand*{\programopt}[1]{#1}
57    
58  \newenvironment{classdesc}[3]{\begin{description}\item[class #1]\mbox{}\\}{\end{description}}  \newenvironment{bigdef}[1]{%
59  \newenvironment{methoddesc}[3][{}]{\begin{description}\item[\textbf{#2}(#3)]\mbox{}\\}{\end{description}}  
60  \newenvironment{funcdesc}[2]{\begin{description}\item[\textbf{#1}(#2)]\mbox{}\\}{\end{description}}  \noindent
61    \setlength{\hangindent}{2cm}
62    \textbf{#1}
63    
64    \setlength{\hangindent}{1cm}%
65    \setlength{\hangafter}{0}%
66    \noindent%
67    }%
68    {%
69    
70    \vspace{0.5cm}
71    }
72    
73    \newenvironment{classdesc}[2]{%
74    \begin{bigdef}{class #1}}{\end{bigdef}}
75    
76    \newenvironment{methoddesc}[3][{}]{%
77    \begin{bigdef}{#2(#3)}}{\end{bigdef}}
78    \newenvironment{funcdesc}[2]{%
79    \begin{bigdef}{#1(#2)}%
80    }
81    {%
82    \end{bigdef}
83    }
84    
85    % {
86    % \begin{bigdef}[#1(#2)]
87    % \noindent
88    % \setlength{\hangindent}{2cm}
89    % \textbf{#1(#2)}
90    %
91    % }
92    % \setlength{\hangindent}{1cm}
93    % \setlength{\hangafter}{0}
94    % \noindent
95    % }%
96    % {%
97    %
98    % \mbox{}\\
99    % }
100    
101    \setlength{\itemindent}{-1cm}\setlength{\leftmargin}{1cm}
102    
103  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}
104  \newenvironment{datadesc}[1]{\begin{description}\item[\textbf{#1}]\mbox{}\\}{\end{description}}  \newenvironment{datadesc}[1]{\begin{description}\item[\textbf{#1}]\mbox{}\\}{\end{description}}
105    
# Line 70  Line 113 
113  \newcommand{\constant}[1]{\textsl{#1}}  \newcommand{\constant}[1]{\textsl{#1}}
114  \newcommand{\method}[1]{\texttt{#1}}  \newcommand{\method}[1]{\texttt{#1}}
115  \newcommand{\member}[1]{\texttt{#1}}  \newcommand{\member}[1]{\texttt{#1}}
116  \newcommand{\code}[1]{\mbox{\texttt{#1}}}   % Because people try to put code in maths mode  \newcommand{\code}[1]{%
117    \ifmmode%
118    \mbox{\texttt{#1}}%
119    \else%
120    \texttt{#1}%
121    \fi    % Because people try to put code in maths mode
122    }
123    
124  \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}
125    
# Line 109  Line 157 
157  }  }
158  \end{titlepage}}  \end{titlepage}}
159    
160    \newcommand{\esysappendix}{%
161  %Please do not use this one  \appendix%
162  \newcommand*{\strong}{}  \renewcommand*{\theHchapter}{\Alph{chapter}}    %How latex generates chapters
163    \renewcommand*{\thechapter}{\Alph{chapter}} %How hyperref generates chapters
164    }
165    
166    
167    

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

  ViewVC Help
Powered by ViewVC 1.1.26