/[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 3293 by caltinay, Thu Oct 21 23:18:32 2010 UTC revision 3294 by jfenwick, Fri Oct 22 01:15:56 2010 UTC
# Line 6  Line 6 
6  \ProvidesClass{esysdoc}  \ProvidesClass{esysdoc}
7  \LoadClass[a4paper, twoside]{book}  \LoadClass[a4paper, twoside]{book}
8    
9  \usepackage[a4paper, left=2.5cm, right=2.5cm]{geometry}  \usepackage[a4paper, left=2.5cm, right=2.5cm, nohead, vcentering, scale=0.8]{geometry}
10  \usepackage{times}  \usepackage{times}
11  % \usepackage{fancyvrb} % Hopefully this will give us our code environments  % \usepackage{fancyvrb} % Hopefully this will give us our code environments
12  \usepackage{listings}  \usepackage{listings}
13    \usepackage{ifpdf}
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,color}
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}
 \usepackage[colorlinks=false,pdfborder={0 0 0},pdfdisplaydoctitle=true,linktocpage=true]{hyperref}  
23    
24  %Ensures that latex doesn't have an error if we don't specify the version  %Blue was chosen here because it looks ok when printed
25  \providecommand{\RepVersion}{Unknown\xspace}  \usepackage[pdfborder={0 0 0},pdfdisplaydoctitle=true,linktocpage=false, colorlinks=true,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
   
   
   
 %This is FAR from perfect for one thing it doesn't allow underscores to be used in filenames  
   
 %Now we mess with the underscore char  
 % {  
 % \catcode`|=8   % Since we will be redefining _ we need another way to indicate subscript in math mode  
 %                % This change only holds for the definition since it disappears at the close brace  
 % \catcode`_=\active    % define _ as a char which triggers a macro (which is what active means)  
 % \gdef\_{%     % A global definition (persists after } ) for _ when it is a macro  
 % \ifmmode |        % If we are in math mode, then output subscript char  
 % \else  
 % \textunderscore       % else output underscore symbol  
 % \fi  
 % }  
 % }  
 % \catcode`_=\active    % Set _ to active at the top level  
   
   
 % \newcommand*{\module}[1]{\texttt{#1}}  
 % \newcommand*{\class}[1]{\texttt{#1}}  
 % \newcommand*{\var}[1]{\textsl{#1}}  
 % \newcommand*{\method}[1]{\texttt{#1}}  
   
   
 %Use the \Var form if you need to include % in the URL  
 %Please note that the \Var form does not work in maths mode  
 % \DeclareUrlCommand\Var{}  
 %Same here with \function except \Function is already in use for a FunctionSpace  
 % \DeclareUrlCommand\FunctionName{}  
   
 % \DeclareUrlCommand\umodule{}  
 % \DeclareUrlCommand\class{}  
 % \DeclareUrlCommand\method{}  
 \DeclareUrlCommand\email{}  
 % \DeclareUrlCommand\program{}  
 % \DeclareUrlCommand\env{}  
26    
27    \usepackage{fancyhdr}
28    \renewcommand{\footrulewidth}{0.4pt}
29    \renewcommand{\headrulewidth}{0pt}
30    
31  % \DeclareUrlCommand\member{}  \fancypagestyle{plain}{%
32  % \DeclareUrlCommand\file{}  \fancyhead{}
33    \cfoot{}
34    \fancyfoot[LE,RO]{\thepage} %left on even pages right on odd pages
35    \fancyfoot[RE]{\nouppercase{\rightmark}}
36    \fancyfoot[LO]{\nouppercase{\leftmark}}
37    }
38    \pagestyle{plain}
39    
40  % \DeclareUrlCommand\kbd{}  \usepackage[Bjarne]{fncychap}
41    % \ChRuleWidth{1pt}
42    \ChNameVar{\raggedleft\large\sffamily}  % The word chapter
43    \ChNumVar{\raggedleft\bfseries\Large}   % The number of the chapter
44    \ChTitleVar{\raggedleft \Huge\sffamily} % title of the chapter
45    
46  % \DeclareUrlCommand\usafe{}    %intended as a wrapper to make stuff underscrore safe  %Ensures that latex doesn't have an error if we don't specify the version
47  % \DeclareUrlCommand\constant{}  \providecommand{\RepVersion}{Unknown\xspace}
48    
49  %To safely deal with a module that has _ in its name do this:  \DeclareUrlCommand\email{}
 % \urldef{\rMATPLOTLIB}\umodule{matplotlib}  
 % \newcommand{\MATPLOTLIB}{\rMATPLOTLIB\index{visualization!matplotlib}\index{matplotlib}\xspace}  
50    
51  \newcommand{\module}[1]{\mbox{\texttt{#1}}}  \newcommand{\module}[1]{\mbox{\texttt{#1}}}
52    
# Line 112  Line 85 
85    
86  \renewcommand{\maketitle}{  \renewcommand{\maketitle}{
87  \begin{titlepage}  \begin{titlepage}
88    \textsf{
89  \begin{raggedleft}  \begin{raggedleft}
90  \Huge  \Huge
91  \hrule  \hrule
# Line 132  Line 106 
106  \vfill  \vfill
107  \@authoraddress\mbox{}\\  \@authoraddress\mbox{}\\
108  \end{raggedleft}  \end{raggedleft}
109    }
110  \end{titlepage}}  \end{titlepage}}
111    
112    
113  %Please do not use this one  %Please do not use this one
114  \newcommand*{\strong}{}  \newcommand*{\strong}{}
115    
 \usepackage{fancyhdr}  
 \renewcommand{\footrulewidth}{0.4pt}  
 \renewcommand{\headrulewidth}{0pt}  
   
 \fancypagestyle{plain}{%  
 \fancyhead{}  
 \cfoot{}  
 \fancyfoot[LE,RO]{\thepage} %left on even pages right on odd pages  
 \fancyfoot[RE]{\nouppercase{\rightmark}}  
 \fancyfoot[LO]{\nouppercase{\leftmark}}  
 }  
 \pagestyle{plain}  
116    
 \usepackage[Bjarne]{fncychap}  
117    

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

  ViewVC Help
Powered by ViewVC 1.1.26