/[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 3300 by jfenwick, Mon Oct 25 00:22:14 2010 UTC trunk/doc/esysdoc.cls revision 3675 by jfenwick, Thu Nov 17 00:53:38 2011 UTC
# Line 10  Line 10 
10  \usepackage{times}  \usepackage{times}
11  \usepackage{listings}  \usepackage{listings}
12  \usepackage{ifpdf}  \usepackage{ifpdf}
13    \usepackage{makeidx}
14    
15  %\usepackage{avant}  %\usepackage{avant}
16  %\renewcommand{\familydefault}{\sfdefault}  % Switch to san seriff  %\renewcommand{\familydefault}{\sfdefault}  % Switch to san seriff
17  \usepackage{url}  \usepackage{url}
18  \usepackage{xspace}  \usepackage{xspace}
19  \usepackage{graphicx,color}  \usepackage{graphicx}
20  \usepackage{amsmath}    %For equation*  \usepackage{amsmath}    %For equation*
21  \usepackage{amsfonts,amssymb} % see http://www.ams.org/tex/amslatex.html  \usepackage{amsfonts,amssymb} % see http://www.ams.org/tex/amslatex.html
22  \usepackage[nohyphen, strings]{underscore}  \usepackage[nohyphen, strings]{underscore}
# Line 23  Line 24 
24  %Blue was chosen here because it looks ok when printed  %Blue was chosen here because it looks ok when printed
25  \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}
26    
27    %Dummy commands for if we ever need to switch off hyperref
28    % \providecommand{\pdfbookmark}[3][0]{}
29    % \providecommand{\currentpdfbookmark}[2]{}
30    % \providecommand{\subpdfbookmark}[2]{}
31    
32    
33  \usepackage{fancyhdr}  \usepackage{fancyhdr}
34  \renewcommand{\footrulewidth}{0.4pt}  \renewcommand{\footrulewidth}{0.4pt}
35  \renewcommand{\headrulewidth}{0pt}  \renewcommand{\headrulewidth}{0pt}
# Line 54  Line 61 
61  %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
62  \newcommand*{\programopt}[1]{#1}  \newcommand*{\programopt}[1]{#1}
63    
64  \newenvironment{classdesc}[2]{\begin{description}\item[class #1]\mbox{}\\}{\end{description}}  \newenvironment{bigdef}[1]{%
65  \newenvironment{methoddesc}[3][{}]{\begin{description}\item[\textbf{#2}(#3)]\mbox{}\\}{\end{description}}  
 \newenvironment{funcdesc}[2]{%  
66  \noindent  \noindent
67  \begin{list}{}{\setlength{\labelwidth}{0cm}}  \setlength{\hangindent}{2cm}
68  \item \textbf{#1(#2)}  \textbf{#1}
69  \end{list}  
70  \begin{list}{}{}  \setlength{\hangindent}{1cm}%
71  \item  \setlength{\hangafter}{0}%
72    \noindent%
73  }%  }%
74  {%  {%
75  \end{list}%  
76    \vspace{0.5cm}
77  }  }
78    
79    \newenvironment{classdesc}[2]{%
80    \begin{bigdef}{class #1(#2)}}{\end{bigdef}}
81    
82    \newenvironment{methoddesc}[3][{}]{%
83    \begin{bigdef}{#2(#3)}}{\end{bigdef}}
84    \newenvironment{funcdesc}[2]{%
85    \begin{bigdef}{#1(#2)}%
86    }
87    {%
88    \end{bigdef}
89    }
90    
91    % {
92    % \begin{bigdef}[#1(#2)]
93    % \noindent
94    % \setlength{\hangindent}{2cm}
95    % \textbf{#1(#2)}
96    %
97    % }
98    % \setlength{\hangindent}{1cm}
99    % \setlength{\hangafter}{0}
100    % \noindent
101    % }%
102    % {%
103    %
104    % \mbox{}\\
105    % }
106    
107  \setlength{\itemindent}{-1cm}\setlength{\leftmargin}{1cm}  \setlength{\itemindent}{-1cm}\setlength{\leftmargin}{1cm}
108    
109  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}  \newenvironment{memberdesc}[2][{}]{\begin{description}\item[\textbf{#2}]\mbox{}\\}{\end{description}}
# Line 103  Line 139 
139    
140  \renewcommand{\maketitle}{  \renewcommand{\maketitle}{
141  \begin{titlepage}  \begin{titlepage}
142    \pdfbookmark[0]{Title page}{title}
143  \textsf{  \textsf{
144  \begin{raggedleft}  \begin{raggedleft}
145  \Huge  \Huge
# Line 127  Line 164 
164  }  }
165  \end{titlepage}}  \end{titlepage}}
166    
167    \newcommand{\esysappendix}{%
168  %Please do not use this one  \appendix%
169  \newcommand*{\strong}{}  \renewcommand*{\theHchapter}{\Alph{chapter}}    %How latex generates chapters
170    \renewcommand*{\thechapter}{\Alph{chapter}} %How hyperref generates chapters
171    }
172    

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

  ViewVC Help
Powered by ViewVC 1.1.26