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

Diff of /trunk/doc/esysdoc.cls

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

revision 3305 by jfenwick, Mon Oct 25 05:04:22 2010 UTC revision 5296 by caltinay, Wed Dec 3 07:22:17 2014 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}
23    
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,pdfusetitle]{hyperref}
26    
27    %  links to figures point to captions without this:
28    \usepackage[all]{hypcap}
29    
30    %Dummy commands for if we ever need to switch off hyperref
31    % \providecommand{\pdfbookmark}[3][0]{}
32    % \providecommand{\currentpdfbookmark}[2]{}
33    % \providecommand{\subpdfbookmark}[2]{}
34    
35    
36  \usepackage{fancyhdr}  \usepackage{fancyhdr}
# Line 57  Line 66 
66    
67  \newenvironment{bigdef}[1]{%  \newenvironment{bigdef}[1]{%
68    
69  \noindent  \vspace{1em}
70  \setlength{\hangindent}{2cm}  \setlength{\hangindent}{2cm}%
71  \textbf{#1}  \raggedright\textbf{#1}
72    
73  \setlength{\hangindent}{1cm}%  \setlength{\hangindent}{1cm}%
74  \setlength{\hangafter}{0}%  \setlength{\hangafter}{0}%
 \noindent%  
75  }%  }%
76  {%  {%
77    
 \vspace{0.5cm}  
78  }  }
79    
80  \newenvironment{classdesc}[2]{%  \newenvironment{classdesc}[2]{%
81    \begin{bigdef}{class #1(#2)}}{\end{bigdef}}
82    \newenvironment{classdesc*}[1]{%
83  \begin{bigdef}{class #1}}{\end{bigdef}}  \begin{bigdef}{class #1}}{\end{bigdef}}
84    
85  \newenvironment{methoddesc}[3][{}]{%  \newenvironment{methoddesc}[3][{}]{%
# Line 107  Line 116 
116  \newcommand{\program}[1]{\textbf{\texttt{#1}}\xspace}  \newcommand{\program}[1]{\textbf{\texttt{#1}}\xspace}
117  % \newcommand{\env}[1]{\texttt{#1}\xspace}  % \newcommand{\env}[1]{\texttt{#1}\xspace}
118  \newcommand{\var}[1]{\texttt{#1}\xspace}  \newcommand{\var}[1]{\texttt{#1}\xspace}
119  \newcommand{\kbd}[1]{\texttt{#1}}  \newcommand{\kbd}[1]{\texttt{#1}\xspace}
120  \newcommand{\function}[1]{\texttt{#1}}  \newcommand{\function}[1]{\texttt{#1}}
121  \newcommand{\class}[1]{\texttt{#1}}  \newcommand{\class}[1]{\texttt{#1}}
122    \newcommand{\exception}[1]{\texttt{#1}}
123  \newcommand{\constant}[1]{\textsl{#1}}  \newcommand{\constant}[1]{\textsl{#1}}
124  \newcommand{\method}[1]{\texttt{#1}}  \newcommand{\method}[1]{\texttt{#1}}
125  \newcommand{\member}[1]{\texttt{#1}}  \newcommand{\member}[1]{\texttt{#1}}
# Line 133  Line 143 
143    
144  \renewcommand{\maketitle}{  \renewcommand{\maketitle}{
145  \begin{titlepage}  \begin{titlepage}
146    \pdfbookmark[0]{Title page}{title}
147  \textsf{  \textsf{
148  \begin{raggedleft}  \begin{raggedleft}
149  \Huge  \Huge
# Line 163  Line 174 
174  \renewcommand*{\thechapter}{\Alph{chapter}} %How hyperref generates chapters  \renewcommand*{\thechapter}{\Alph{chapter}} %How hyperref generates chapters
175  }  }
176    
   
   

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

  ViewVC Help
Powered by ViewVC 1.1.26