source: CPL/oasis3/trunk/src/mod/oasis3/doc/prismdoc.cls @ 1677

Last change on this file since 1677 was 1677, checked in by aclsce, 12 years ago

Imported oasis3 (tag ipslcm5a) from cvs server to svn server (igcmg project).

File size: 27.2 KB
Line 
1
2%%
3%% This is file `prismdoc.cls'; there should be no need for modifications
4%%
5
6\def\fileversion{0.8}
7\def\filedate{2004/07/26}
8\NeedsTeXFormat{LaTeX2e}
9\ProvidesClass{prismdoc}[2004/07/26 For all prismdoc manuals]
10\RequirePackage{ifthen}
11
12\newboolean{IsItaIB}\setboolean{IsItaIB}{false}
13\newboolean{IsItaRS}\setboolean{IsItaRS}{false}
14\newboolean{IsItaDOCU}\setboolean{IsItaDOCU}{false}
15\newboolean{IsItaZIK}\setboolean{IsItaZIK}{false}
16\newboolean{IsItaZHB}\setboolean{IsItaZHB}{false}
17\newboolean{OptSectoChap}\setboolean{OptSectoChap}{false}
18\newboolean{OptChaptoSec}\setboolean{OptChaptoSec}{false}
19\newboolean{OptToc}\setboolean{OptToc}{false}
20\newboolean{OptNoArabic}\setboolean{OptNoArabic}{false}
21\newboolean{OptIndex}\setboolean{OptIndex}{false}
22\newboolean{OptFigureList}\setboolean{OptFigureList}{false}
23\newboolean{OptTableList}\setboolean{OptTableList}{false}
24\newboolean{OptExampleList}\setboolean{OptExampleList}{false}
25\newboolean{OptProgramList}\setboolean{OptProgramList}{false}
26\newboolean{OptJobList}\setboolean{OptJobList}{false}
27\newboolean{OptOldFloat}\setboolean{OptOldFloat}{false}
28\newboolean{OptLow}\setboolean{OptLow}{false}
29\newboolean{OptWide}\setboolean{OptWide}{false}
30\newboolean{OptNocopy}\setboolean{OptNocopy}{false}
31\newboolean{OptTitleonly}\setboolean{OptTitleonly}{false}
32
33\newcommand{\PRISMDOCZikTitle}{PRISM-interne Kurzinformation}
34\newcommand{\PRISMDOCZhbTitle}{PRISM-internes Handbuch}
35\newcommand{\PRISMDOCIbTitle}{Interner Bericht}
36\newcommand{\PRISMDOCtype}{}
37\newcommand{\PRISMDOCDebugBox}[1]{}
38\newcommand{\PRISMDOCFont}[6]{\fontencoding{#1}\fontfamily{#2}\fontseries{#3}
39                               \fontshape{#4}\fontsize{#5}{#6}\selectfont}
40
41\DeclareOption*{%
42  \typeout{PRISMDOC: \CurrentOption\ passed to base class}
43  \PassOptionsToClass{\CurrentOption}{article}%
44  \PassOptionsToClass{\CurrentOption}{report}%
45  }
46\DeclareOption{a4paper}{\typeout{PRISMDOC:
47    {\CurrentOption}  will not be used}}
48\DeclareOption{a5paper}{\typeout{PRISMDOC:
49    {\CurrentOption}  will not be used}}
50\DeclareOption{sectochap}{
51  \setboolean{OptSectoChap}{true}
52  }
53\DeclareOption{chaptosec}{
54  \setboolean{OptChaptoSec}{true}
55  }
56\DeclareOption{rs}{
57% middle part of Doc Type:e.g.Report
58  \renewcommand{\PRISMDOCtype}{}
59  \setboolean{IsItaRS}{true}
60  \setboolean{OptChaptoSec}{false}
61  }
62\DeclareOption{tki}{
63  \renewcommand{\PRISMDOCtype}{TKI}
64  }
65
66\DeclareOption{zik}{
67  \renewcommand{\PRISMDOCtype}{ZIK}
68  \setboolean{IsItaZIK}{true}
69  }
70\DeclareOption{zhb}{
71  \renewcommand{\PRISMDOCtype}{ZHB}
72  \setboolean{IsItaRS}{true}
73  \setboolean{IsItaZHB}{true}
74  }
75\DeclareOption{ib}{
76  \renewcommand{\PRISMDOCtype}{IB}
77  \setboolean{IsItaRS}{true}
78  }
79\DeclareOption{toc}{
80  \setboolean{OptToc}{false}
81  }
82\DeclareOption{noarabic}{
83  \setboolean{OptNoArabic}{true}
84  }
85\DeclareOption{lof}{
86  \setboolean{OptFigureList}{false}
87  }
88\DeclareOption{lot}{
89  \setboolean{OptTableList}{false}
90  }
91\DeclareOption{loe}{
92  \setboolean{OptExampleList}{false}
93  }
94\DeclareOption{lop}{
95  \setboolean{OptProgramList}{false}
96  }
97\DeclareOption{loj}{
98  \setboolean{OptJobList}{false}
99  }
100\DeclareOption{english}{
101  \renewcommand{\PRISMDOCZikTitle}{PRISM internal Technical Reference}
102  \renewcommand{\PRISMDOCZhbTitle}{PRISM Internal User's Manual}
103  \renewcommand{\PRISMDOCIbTitle}{Technical Report}
104  }
105\DeclareOption{index}{
106  \setboolean{OptIndex}{true}
107  }
108\DeclareOption{nocopy}{
109  \setboolean{OptNocopy}{true}
110  }
111\DeclareOption{docurs}{
112  \renewcommand{\PRISMDOCtype}{Report}
113  \setboolean{IsItaRS}{true}
114  \setboolean{IsItaDOCU}{true}
115  }
116\DeclareOption{docu}{
117  \setboolean{IsItaDOCU}{true}
118  }
119\DeclareOption{titleonly}{
120  \setboolean{OptTitleonly}{true}
121  }
122\DeclareOption{overfull}{
123  \setlength{\overfullrule}{2pt}
124  }
125\DeclareOption{debug}{
126  \renewcommand{\PRISMDOCDebugBox}[1]{#1}
127  }
128\DeclareOption{oldfloat}{
129  \setboolean{OptOldFloat}{true}
130  }
131\DeclareOption{low}{
132  \setboolean{OptLow}{true}
133  }
134\DeclareOption{wide}{
135  \setboolean{OptWide}{true}
136  }
137\ProcessOptions\relax
138\ifthenelse{\boolean{IsItaRS}}
139{%
140  \LoadClass[twoside,11pt]{report}
141}% else
142{
143  {
144    \typeout{PRISMDOC: No document type found, assuming RS}
145    \LoadClass[twoside,11pt]{report}
146    }
147}
148\RequirePackage{varioref}
149\RequirePackage{times}
150\RequirePackage{tabularx}
151\RequirePackage{fancyheadings}
152\RequirePackage{float}
153\RequirePackage[hang,bf,small,nooneline]{caption}
154\RequirePackage{expdlist}
155\RequirePackage{varioref}
156\RequirePackage{multicol}
157\RequirePackage{changebar}
158\RequirePackage{alltt}
159\newcolumntype{C}{>{\centering\arraybackslash}X}%
160\newcommand{\htmladdnormallink}[2]{#1}
161\RequirePackage[dvips]{epsfig}
162\ifthenelse{\boolean{OptIndex}}%
163{
164  \RequirePackage{makeidx}
165}{}
166\ifthenelse{\boolean{OptChaptoSec}}
167{%
168\newcommand\chapter{\@startsection {section}{1}{\z@}%
169                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
170                                   {2.3ex \@plus.2ex}%
171                                   {\normalfont\Large\bfseries}}
172\renewcommand\section{\@startsection{subsection}{2}{\z@}%
173                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
174                                     {1.5ex \@plus .2ex}%
175                                     {\normalfont\large\bfseries}}
176\renewcommand\subsection{\@startsection{subsubsection}{3}{\z@}%
177                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
178                                     {1.5ex \@plus .2ex}%
179                                     {\normalfont\normalsize\bfseries}}
180\renewcommand\subsubsection{\@startsection{paragraph}{4}{\z@}%
181                                    {3.25ex \@plus1ex \@minus.2ex}%
182                                    {-1em}%
183                                    {\normalfont\normalsize\bfseries}}
184\renewcommand\paragraph{\@startsection{subparagraph}{5}{\parindent}%
185                                       {3.25ex \@plus1ex \@minus .2ex}%
186                                       {-1em}%
187                                      {\normalfont\normalsize\bfseries}}
188\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
189                                       {3.25ex \@plus1ex \@minus .2ex}%
190                                       {-1em}%
191                                      {\normalfont\normalsize\bfseries}}
192}{}
193\ifthenelse{\boolean{OptSectoChap}}
194{%
195\renewcommand{\section}{\if@openright\cleardoublepage\else\clearpage\fi
196                    \thispagestyle{plain}%
197                    \global\@topnum\z@
198                    \@afterindentfalse
199                    \secdef\@chapter\@schapter}
200\renewcommand{\subsection}{\@startsection {section}{1}{\z@}%
201                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
202                                   {2.3ex \@plus.2ex}%
203                                   {\normalfont\Large\bfseries}}
204\renewcommand{\subsubsection}{\@startsection{subsection}{2}{\z@}%
205                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
206                                     {1.5ex \@plus .2ex}%
207                                     {\normalfont\large\bfseries}}
208\renewcommand{\paragraph}{\@startsection{subsubsection}{3}{\z@}%
209                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
210                                     {1.5ex \@plus .2ex}%
211                                     {\normalfont\normalsize\bfseries}}
212\renewcommand{\subparagraph}{\@startsection{paragraph}{4}{\z@}%
213                                    {3.25ex \@plus1ex \@minus.2ex}%
214                                    {-1em}%
215                                    {\normalfont\normalsize\bfseries}}
216}{}
217\voffset=-1in
218\hoffset=-1in
219\ifthenelse{\boolean{OptWide}}%
220{ %
221  \textwidth=16.2cm
222  \oddsidemargin=2.4cm
223  \evensidemargin=2.4cm
224}{ % else
225  \textwidth=15.2cm
226  \oddsidemargin=2.9cm
227  \evensidemargin=2.9cm
228}
229\topmargin=1.4cm
230\headheight=0.8cm
231\headsep=0.3cm
232\textheight=24.5cm
233\footskip=1.3cm
234\marginparwidth=1cm
235\setcounter{topnumber}{3}
236\setcounter{bottomnumber}{3}
237\setcounter{totalnumber}{6}
238\renewcommand{\topfraction}{0.8}
239\renewcommand{\bottomfraction}{0.8}
240\renewcommand{\textfraction}{0.1}
241\setlength\parskip{0.5ex \@plus 0.2ex}
242\setlength\parindent{0pt}
243\def\@listI{\leftmargin\leftmargini
244            \parsep \parskip
245            \topsep \z@
246            \itemsep\z@}
247\let\@listi\@listI
248\@listi
249\def\@listii {\leftmargin\leftmarginii
250              \labelwidth\leftmarginii
251              \advance\labelwidth-\labelsep
252              \topsep    \z@
253              \parsep    \parskip
254              \itemsep   \z@}
255\def\@listiii{\leftmargin\leftmarginiii
256              \labelwidth\leftmarginiii
257              \advance\labelwidth-\labelsep
258              \topsep    \z@
259              \parsep    \parskip
260              \partopsep \z@
261              \itemsep   \topsep}
262\def\@listiv {\leftmargin\leftmarginiv
263              \labelwidth\leftmarginiv
264              \advance\labelwidth-\labelsep}
265\def\@listv  {\leftmargin\leftmarginv
266              \labelwidth\leftmarginv
267              \advance\labelwidth-\labelsep}
268\def\@listvi {\leftmargin\leftmarginvi
269              \labelwidth\leftmarginvi
270              \advance\labelwidth-\labelsep}
271\hfuzz=2mm
272\newcommand{\PRISMDOCnum}{}
273\newcommand{\PRISMDOCautor}{}
274\newcommand{\PRISMDOCfname}{}
275\newcommand{\PRISMDOCsname}{}
276\newcommand{\PRISMDOCfphone}{}
277\newcommand{\PRISMDOCsphone}{}
278\newcommand{\PRISMDOCfwp}{}
279\newcommand{\PRISMDOCfaff}{}
280\newcommand{\PRISMDOCsaff}{}
281\newcommand{\PRISMDOCfem}{}
282\newcommand{\PRISMDOCswp}{}
283\newcommand{\PRISMDOCdate}{}
284\newcommand{\PRISMDOCversion}{}
285\newcommand{\PRISMDOCtitel}{}
286\newcommand{\PRISMDOCremark}{}
287\newcommand{\PRISMDOCfigsize}{}
288\newcommand{\prismdocType}[1]{\renewcommand{\PRISMDOCtype}{#1}}
289\newcommand{\prismdocNum}[1]{\renewcommand{\PRISMDOCnum}{#1}}
290\newcommand{\prismdocAutor}[1]{\renewcommand{\PRISMDOCautor}{#1}}
291\newcommand{\prismdocFName}[1]{\renewcommand{\PRISMDOCfname}{#1}}
292\newcommand{\prismdocSName}[1]{\renewcommand{\PRISMDOCsname}{#1}}
293\newcommand{\prismdocFPhone}[1]{\renewcommand{\PRISMDOCfphone}{#1}}
294\newcommand{\prismdocSPhone}[1]{\renewcommand{\PRISMDOCsphone}{#1}}
295\newcommand{\prismdocFWp}[1]{\renewcommand{\PRISMDOCfwp}{#1}}
296\newcommand{\prismdocSWp}[1]{\renewcommand{\PRISMDOCswp}{#1}}
297\newcommand{\prismdocFAff}[1]{\renewcommand{\PRISMDOCfaff}{#1}}
298\newcommand{\prismdocSAff}[1]{\renewcommand{\PRISMDOCsaff}{#1}}
299\newcommand{\prismdocFEm}[1]{\renewcommand{\PRISMDOCfem}{#1}}
300\newcommand{\prismdocVersion}[1]{\renewcommand{\PRISMDOCversion}{#1}}
301\newcommand{\prismdocDate}[1]{\renewcommand{\PRISMDOCdate}{#1}}
302\newcommand{\prismdocTitel}[1]{\renewcommand{\PRISMDOCtitel}{#1}}
303\newcommand{\prismdocRemark}[1]{\renewcommand{\PRISMDOCremark}{#1}}
304\newcommand{\prismdocFigSize}[1]{\renewcommand{\PRISMDOCfigsize}{#1}}
305
306\newcommand{\prismdocHeader}{}
307\newcommand{\prismdocTOC}{}
308
309\ifthenelse{\boolean{IsItaRS}}
310{%
311  \pagestyle{fancy}
312  \lhead[{\bfseries\thepage}]{\bfseries\rightmark}
313  \rhead[{\bfseries\leftmark}]{\bfseries\thepage}
314  \lfoot[{}]{}
315  \cfoot{}{}
316  \setlength{\headrulewidth}{0.4pt}
317  \ifthenelse{\boolean{OptIndex}}
318  {%
319    \makeindex
320    }{}
321  \renewcommand{\prismdocHeader}{%
322    \ifthenelse{\boolean{IsItaDOCU}}{
323    %  Title page
324      \thispagestyle{empty}
325      \setlength{\unitlength}{1cm}
326      \ifthenelse{\boolean{OptWide}}%
327      {\hspace*{5mm}}{}%
328      \newpage
329      \thispagestyle{empty}
330      \ \ \\
331      \newpage
332      }{}
333    \thispagestyle{empty}
334    \setlength{\unitlength}{1cm}
335    \ifthenelse{\boolean{OptWide}}%
336    {\hspace*{5mm}}{}%
337    \begin{picture}(15.2,24.5)
338      \ifthenelse{\not\(\boolean{IsItaIB}\or \boolean{IsItaDOCU}\)}%
339      {
340        \PRISMDOCDebugBox{\put(0,0){\dashbox{0.1}(15.2,24.5){}}}
341        \PRISMDOCDebugBox{\put(2.5,8.1){\dashbox{0.1}(10.3,10.3){}}}
342        \PRISMDOCDebugBox{\put(1.6,22.1){\dashbox{0.1}(12,2){}}}
343        \put(1.6,22.1){\makebox(12,2){\parbox{12cm}{
344              \begin{center}
345                \vspace*{-\topsep}
346              {\PRISMDOCFont{T1}{ptm}{b}{n}{14pt}{18pt}
347                PRISM \\
348                Project for Integrated Earth System Modelling \\ }
349              {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}
350                An Infrastructure Project for Climate Research in Europe \\
351                funded by the European Commission \\
352                under Contract  EVR1-CT2001-40012 \par
353                }
354              \vspace*{-\topsep}
355            \end{center}}}}
356                                % Logo
357      \PRISMDOCDebugBox{\put(4.35,18.8){\dashbox{0.1}(6.5,0.5)[t]{}}}
358      \put(4.35,18.8){\makebox(6.5,0.5)[t]{
359          \parbox{6.5cm}{
360            \begin{center}
361              \vspace*{-\topsep}
362               \centering
363                \includegraphics[width=4cm]{figures/prismnewlg}
364              \vspace*{-\topsep}
365            \end{center}}}}
366                                % Title
367        \PRISMDOCDebugBox{\put(2.8,9.3){\dashbox{0.1}(9.6,2.5)[t]{}}}
368        \put(2.8,9.3){\makebox(9.6,2.5)[t]{
369            \parbox{9cm}{
370              \begin{center}
371                \vspace*{-\topsep}
372              {\PRISMDOCFont{T1}{ptm}{b}{n}{14pt}{18pt}
373                \PRISMDOCtitel\par}
374              \vspace*{-\topsep}
375            \end{center}}}}
376                                % Authors
377      \PRISMDOCDebugBox{\put(3.1,7.3){\dashbox{0.1}(9,1.5)[t]{}}}
378      \put(3.1,7.3){\makebox(9,1.5)[t]{
379          \parbox{15cm}{
380            \begin{center}
381              \vspace*{-\topsep}
382              {\PRISMDOCFont{T1}{ptm}{m}{sl}{11pt}{12pt}
383                \PRISMDOCautor\par}
384              \vspace*{-\topsep}
385            \end{center}}}}
386                                % Volume
387      \PRISMDOCDebugBox{\put(5.35,3.3){\dashbox{0.1}(4.5,0.4)[t]{}}}
388      \put(5.35,3.3){\makebox(4.5,0.4)[t]{
389          \parbox{4.5cm}{
390            \begin{center}
391              \vspace*{-\topsep}
392              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
393                PRISM-\PRISMDOCtype-\PRISMDOCnum}
394              \vspace*{-\topsep}
395            \end{center}}}}
396                                % Edition
397      \PRISMDOCDebugBox{\put(4.35,1.1){\dashbox{0.1}(6.5,0.4)[t]{}}}
398      \put(4.35,1.1){\makebox(6.5,0.4)[t]{
399          \parbox{6.5cm}{
400            \begin{center}
401              \vspace*{-\topsep}
402              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
403                \PRISMDOCversion}
404              \vspace*{-\topsep}
405            \end{center}}}}
406                                % Last changed: ??
407      \PRISMDOCDebugBox{\put(4.35,2.3){\dashbox{0.1}(6.5,0.5)[t]{}}}
408%S.L. left coordinate of box=\put(N.N,...)
409%S.L. height of lower frame=\put(...,N.N)
410%S.L. width of text box= \parbox{N.Ncm}
411\put(4.35,0.3){\makebox(6.5,0.5)[t]{
412          \parbox{6.5cm}{   
413            \begin{center}
414              \vspace*{-\topsep}
415              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
416                \PRISMDOCdate }
417              \vspace*{-\topsep}
418            \end{center}}}}
419                                % Notes
420      \PRISMDOCDebugBox{\put(0,1.4){\dashbox{0.1}(13,1.5)[t]{}}}
421      \put(0,1.4){\makebox(13,1.5)[t]{
422          \parbox{13cm}{
423            {\PRISMDOCFont{T1}{ptm}{m}{n}{10pt}{12pt}\PRISMDOCremark}}}}
424      }{ % else
425%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
426                                % IB: RS oder ZHB
427      \PRISMDOCDebugBox{\put(3.1,14.3){\dashbox{0.1}(9,0.9)[t]{}}}
428      \put(3.1,14.3){\makebox(9,0.9)[t]{
429          \parbox{9cm}{
430            \begin{center}
431              \vspace*{-\topsep}
432              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
433                \ifthenelse{\boolean{IsItaZHB}}%
434                  {\PRISMDOCZhbTitle}%
435                  {%
436                    \ifthenelse{\boolean{IsItaIB}}%
437                    {\PRISMDOCIbTitle}%
438                    }%
439                  }%
440                \vspace*{-\topsep}
441              \end{center}}}}
442                                % IB: Title
443        \PRISMDOCDebugBox{\put(2.6,10.8){\dashbox{0.1}(10.0,2.5)[t]{}}}
444        \put(2.6,10.8){\makebox(10.0,2.5)[t]{
445            \parbox{9cm}{
446              \begin{center}
447                \vspace*{-\topsep}
448              {\PRISMDOCFont{T1}{ptm}{b}{n}{14pt}{18pt}
449                \PRISMDOCtitel\par}
450              \vspace*{-\topsep}
451            \end{center}}}}
452                                % IB: Authors
453      \PRISMDOCDebugBox{\put(3.1,8.0){\dashbox{0.1}(9,1.5)[t]{}}}
454      \put(3.1,8.0){\makebox(9,1.5)[t]{
455          \parbox{9cm}{
456            \begin{center}
457              \vspace*{-\topsep}
458              {\PRISMDOCFont{T1}{ptm}{m}{sl}{11pt}{12pt}
459                \PRISMDOCautor\par}
460              \vspace*{-\topsep}
461            \end{center}}}}
462                                % IB: Volume
463      \PRISMDOCDebugBox{\put(5.35,7.0){\dashbox{0.1}(4.5,0.4)[t]{}}}
464      \put(5.35,7.0){\makebox(4.5,0.4)[t]{
465          \parbox{4.5cm}{
466            \begin{center}
467              \vspace*{-\topsep}
468              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
469                PRISM-\PRISMDOCtype-\PRISMDOCnum}
470              \vspace*{-\topsep}
471            \end{center}}}}
472                                % IB: Edition
473      \PRISMDOCDebugBox{\put(4.35,5.1){\dashbox{0.1}(6.5,0.4)[t]{}}}
474      \put(4.35,5.1){\makebox(6.5,0.4)[t]{
475          \parbox{6.5cm}{
476            \begin{center}
477              \vspace*{-\topsep}
478              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
479                \PRISMDOCversion}
480              \vspace*{-\topsep}
481            \end{center}}}}
482                                % IB: Last changed
483      \PRISMDOCDebugBox{\put(4.35,6.3){\dashbox{0.1}(6.5,0.5)[t]{}}}
484      \put(4.35,6.3){\makebox(6.5,0.5)[t]{
485          \parbox{6.5cm}{
486            \begin{center}
487              \vspace*{-\topsep}
488              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
489                (last change: \PRISMDOCdate)}
490              \vspace*{-\topsep}
491            \end{center}}}}
492                                % IB: Remark
493      \PRISMDOCDebugBox{\put(0,1.4){\dashbox{0.1}(13,1.5)[t]{}}}
494      \put(0,1.4){\makebox(13,1.5)[t]{
495          \parbox{15cm}{
496            {\PRISMDOCFont{T1}{ptm}{m}{n}{10pt}{12pt}\PRISMDOCremark}}}}
497      }
498      \end{picture}
499\newpage
500    \thispagestyle{empty}
501    \ifthenelse{\boolean{OptWide}}%
502    {\hspace*{5mm}}{}
503    \begin{picture}(15.2,24.5)
504                                % Body for Text
505    \PRISMDOCDebugBox{\put(0,0){\dashbox{0.1}(15.2,24.9){}}}
506
507    \ifthenelse{\boolean{IsItaIB}}{}%else
508    {
509    \PRISMDOCDebugBox{\put(0,21.4){\dashbox{0.1}(15,3.4)[t]{}}}
510    \ifthenelse{\boolean{OptNocopy}}{}%else
511    {
512      \put(0,21.4){\makebox(15,3.4)[t]{
513          \parbox{15cm}{
514            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}Copyright Notice\\[0.5ex]}
515            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
516            \copyright\ Copyright 2004 by CERFACS \\
517            All rights reserved.\\
518            No parts of this document should be either reproduced or
519            commercially used without prior agreement
520            by CERFACS representatives.  \\
521            }}}
522      }
523
524      \PRISMDOCDebugBox{\put(0,16.2){\dashbox{0.1}(15,5.2)[t]{}}}
525      \put(0,16.2){\makebox(15,5.2)[t]{
526          \parbox{15cm}{
527            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}
528              How to get assistance?\\[0.5ex]}
529            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
530            Assistence can be obtained as listed below. \\
531            PRISM documentations can be downloaded from
532            the WWW PRISM web site under the URL:
533            <http://prism.enes.org>
534            }}}
535
536      \PRISMDOCDebugBox{\put(0,14.4){\dashbox{0.1}(15,2.2)[t]{}}}
537      \put(0,16.6){\makebox(15,2.2)[t]{
538          \parbox{15cm}{
539            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}
540              Phone Numbers and Electronic Mail Adresses
541              \\[0.5ex]}
542%            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
543%            Electronic mail adresses of the individual work packages are composed as follows :\\
544%            \textbf{prism\_ \textit{work package} @prism.enes.org}
545            }}}
546
547      \PRISMDOCDebugBox{\put(0,4.1){\dashbox{0.1}(15,11.0)[t]{}}}
548      \put(0,7.1){\makebox(15,11.0)[t]{
549          \parbox{15cm}{
550            \newcommand{\PRISMDOCtblbf}{\PRISMDOCFont{T1}{ptm}{b}{n}{9.8pt}{11pt}}
551            \newcommand{\PRISMDOCtblit}{\PRISMDOCFont{T1}{ptm}{m}{it}{9.8pt}{11pt}}
552            \newcommand{\PRISMDOCtblbi}{\PRISMDOCFont{T1}{ptm}{b}{it}{9.8pt}{11pt}}
553            \PRISMDOCFont{T1}{ptm}{m}{n}{9.8pt}{11pt}
554            \renewcommand{\arraystretch}{1.11}
555            \setlength{\tabcolsep}{4pt}
556            \begin{tabular}[t]{|p{4.6cm}|p{3.1cm}|p{2.2cm}|p{3.1cm}|}
557              \hline%\rowcolor[gray]{0.2}
558              \PRISMDOCtblbf Name&
559              \PRISMDOCtblbf Phone &
560              \PRISMDOCtblbf Affiliation &
561              \PRISMDOCtblbf e-mail \\
562              \hline\hline
563              \PRISMDOCfname\par & \PRISMDOCfphone\par & \PRISMDOCfaff\par & \PRISMDOCfem\par \\
564              \PRISMDOCsname\par & \PRISMDOCsphone\par & \PRISMDOCsaff\par & \par \\
565              \hline
566            \end{tabular}
567            }}}
568
569     \PRISMDOCDebugBox{\put(0,-0.5){\dashbox{0.1}(15,4.0)[b]{}}}
570      \put(0,-0.5){\makebox(15,4.0)[b]{
571          \parbox{15cm}{
572            \renewcommand{\arraystretch}{1.10}
573            \PRISMDOCFont{T1}{ptm}{m}{n}{9.8pt}{11pt}
574            }}}
575      } % IsItaIB
576    \end{picture}
577    \newpage
578    \pagenumbering{roman}
579    \setcounter{page}{1}
580    \ifthenelse{\boolean{OptTitleonly}}{}%
581    {
582      {
583        \parskip=0pt
584        \tableofcontents
585        \ifthenelse{\boolean{OptFigureList}}{
586          \cleardoublepage
587          \listoffigures
588          }{}
589        \ifthenelse{\boolean{OptTableList}}{
590          \cleardoublepage
591          \listoftables
592          }{}
593        \ifthenelse{\boolean{OptExampleList}}{
594          \cleardoublepage
595          \listof{Example_int}{List of Examples}
596          }{}
597        \ifthenelse{\boolean{OptProgramList}}{
598          \cleardoublepage
599          \listof{Program_int}{List of Programs}
600          }{}
601        \ifthenelse{\boolean{OptJobList}}{
602          \cleardoublepage
603          \listof{Job_int}{List of Jobs}
604          }{}
605        }
606      \cleardoublepage
607      \ifthenelse{\not\boolean{OptNoArabic}}{
608        \pagenumbering{arabic}
609      }{}
610      \cleardoublepage
611      }
612    }
613}{}
614
615
616\newcommand{\Indextt}[1]{\index{#1@\texttt{#1}}}
617\newlength{\PRISMDOCFrameskip}
618\setlength{\PRISMDOCFrameskip}{3pt}
619\newsavebox{\ffbox}
620\newlength{\ffboxl}
621\newenvironment{Frame}[1][\linewidth]{ %
622\begin{lrbox}{\ffbox}
623  \setlength{\ffboxl}{#1}
624  \addtolength{\ffboxl}{-4\fboxrule}
625  \addtolength{\ffboxl}{-4\fboxsep}
626  \begin{minipage}[t]{\ffboxl}
627}                                    %
628{                                    %
629  \end{minipage}
630\end{lrbox}
631\ifthenelse{\boolean{hmode}}{
632  \hskip\parfillskip\\[\PRISMDOCFrameskip]
633}{\vspace{\PRISMDOCFrameskip}}
634\noindent\fbox{\usebox{\ffbox}\\}%
635\vspace{\PRISMDOCFrameskip}%
636}%
637\newcommand{\Mail}[1]{\textbf{#1}}
638\newcommand{\Internet}[1]{\textbf{\texttt{#1}}}
639\newcommand{\Url}[1]{\textbf{\texttt{#1}}}
640\newcommand{\Ftp}[1]{\textbf{\texttt{#1}}}
641\newcommand{\Unixcmd}[1]{\textbf{\texttt{#1}}}
642\newcommand{\Unixopt}[1]{\textbf{\texttt{#1}}}
643\newcommand{\Varunixopt}[1]{\textbf{\texttt{\textit{#1}}}}
644\newcommand{\Shellvar}[1]{\textbf{\texttt{\$#1}}}
645\newcommand{\Path}[1]{\textbf{\texttt{#1}}}
646\newcommand{\File}[1]{\texttt{#1}}
647\newcommand{\Varfile}[1]{\texttt{\textit{#1}}}
648\newcommand{\Prompt}[1]{\texttt{#1}}
649\newcommand{\Unixmessage}[1]{\texttt{#1}}
650\newcommand{\Queue}[1]{\texttt{\textbf{#1}}}
651\newcommand{\Keyword}[1]{\texttt{#1}}
652\newcommand{\Keybrd}[1]{\fbox{\texttt{#1}}}
653%\newcommand{\Tki}[1]{\htmladdnormallink{TKI-#1}%
654%  {http://prism.enes.org}}
655\newenvironment{Indent}{ %
656\begin{list}{}{\topsep=0pt}\item[]
657}%
658{%
659\end{list}
660}
661\newcommand{\Myindent}{\hspace*{\leftmargin}}
662\newcommand{\Crayfilesrv}{\/Cray file server\/}
663\newcommand{\Crayfs}{\/Cray file server\/}
664\newcommand{\Craycs}{\/CRAY J90\/}
665\newcommand{\Craympp}{\/CRAY T3E\/}
666\newcommand{\Craypvp}{\/CRAY T90\/}
667\newcommand{\CrayfilesrvT}{Cray file server}
668\newcommand{\CrayfsT}{Cray file server}
669\newcommand{\CraycsT}{CRAY J90}
670\newcommand{\CraymppT}{CRAY T3E}
671\newcommand{\CraypvpT}{CRAY T90}
672\newcommand{\Jump}{\/Jump\/}
673\newcommand{\Homechar}{$\sim$}
674\newcommand{\Backslash}{$\backslash$}
675\newcommand{\Kea}{[}
676\newcommand{\Kez}{]}
677\newcommand\fs@Boxed{\def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@plain
678  \def\@fs@pre{
679    \setbox\@currbox\vbox{%
680      \hbadness10000%
681      \vbox{%
682        \hrule%
683        \hbox to\hsize{%
684          \vrule\kern2pt%
685          \vbox{%
686            \kern5pt\box\@currbox\kern5pt%
687            }%
688          \kern-2.7pt\vrule}\hrule}%
689      }%
690    }%
691  \def\@fs@mid{\kern3pt}%
692  \def\@fs@post{}\let\@fs@iftopcapt\iffalse}
693\floatstyle{Boxed}
694\setlength{\floatsep}{6pt plus 2pt minus2pt}
695\setlength{\textfloatsep}{10pt plus 2pt minus2pt}
696\setlength{\intextsep}{6pt plus 2pt minus2pt}
697\setlength{\abovecaptionskip}{3pt}
698
699\ifthenelse{\boolean{IsItaRS}}{
700  \newfloat{Program_int}{htbp}{lop}[chapter]
701  \newfloat{Job_int}{htbp}{loj}[chapter]
702  \newfloat{Example_int}{htbp}{loe}[chapter]
703}{
704  \newfloat{Program_int}{htbp}{lop}
705  \newfloat{Job_int}{htbp}{loj}
706  \newfloat{Example_int}{htbp}{loe}
707}
708\floatname{Example_int}{Example}
709\floatname{Program_int}{Program}
710\floatname{Job_int}{Job}
711\ifthenelse{\boolean{OptOldFloat}}
712{%
713  \newenvironment{Example}%
714  {\begin{Example_int}[H]\small\begin{alltt}}%
715  {\end{alltt}\vspace*{-2ex}\end{Example_int}}%
716  \newenvironment{Longexample}%
717  {\begin{Example_int}\small}%
718  {\end{Example_int}}%
719  %
720  \newenvironment{Job}%
721  {\begin{Job_int}[H]\small\begin{alltt}}%
722  {\end{alltt}\vspace*{-2ex}\end{Job_int}}
723  \newenvironment{Longjob}%
724  {\begin{Job_int}\small}%
725  {\end{Job_int}}%
726  \newenvironment{Program}%
727  {\begin{Program_int}[H]\small\begin{alltt}}%
728  {\end{alltt}\vspace*{-2ex}\end{Program_int}}%
729  \newenvironment{Longprogram}%
730  {\begin{Program_int}\small}%
731  {\end{Program_int}}%
732}{ %else
733  \newenvironment{Shortexample}%
734  {\begin{Frame}\small\begin{alltt}}%
735  {\end{alltt}\end{Frame}}%
736  \newenvironment{Example}[1][htbp]%
737  {\begin{Example_int}[#1]\small}%
738  {\end{Example_int}}%
739  %
740  \newenvironment{Shortjob}%
741  {\begin{Frame}\small\begin{alltt}}%
742  {\end{alltt}\end{Frame}}
743  \newenvironment{Job}[1][htbp]%
744  {\begin{Job_int}[#1]\small}%
745  {\end{Job_int}}%
746  \newenvironment{Shortprogram}%
747  {\begin{Frame}\small\begin{alltt}}%
748  {\end{alltt}\end{Frame}}%
749  \newenvironment{Program}[1][htbp]%
750  {\begin{Program_int}[#1]\small}%
751  {\end{Program_int}}%
752}
753\ifthenelse{\boolean{IsItaRS}}
754{%
755  \floatstyle{Boxed}
756% Comment line below if you dont want a frome around the figures
757  \restylefloat{figure}
758}{}
759\newenvironment{Itemize*}%
760{ \partopsep=0pt%
761  \begin{itemize}%
762    \vspace*{-\topsep}%
763    \parskip=0pt\itemsep=0pt\partopsep=0pt%%
764}%
765{%
766  \vspace*{-\topsep}%
767\end{itemize}%
768}
769\newenvironment{Enumerate*}%
770{ \partopsep=0pt%
771  \begin{enumerate}%
772    \vspace*{-\topsep}%
773    \parskip=0pt\itemsep=0pt\partopsep=0pt%%
774}%
775{%
776  \vspace*{-\topsep}%
777\end{enumerate}%
778}
779\newcommand{\longpage}%
780{\enlargethispage{\baselineskip}\PRISMDOCDebugBox{\marginpar{\fbox{+}}}}
781\newcommand{\shortpage}%
782{\enlargethispage{-\baselineskip}\PRISMDOCDebugBox{\marginpar{\fbox{-}}}}
783
784\ifthenelse{\boolean{OptLow}}%
785{%
786\newenvironment{itemize*}%
787{\begin{Itemize*}}%
788{\end{Itemize*}}
789\newenvironment{enumerate*}%
790{\begin{Enumerate*}}%
791{\end{Enumerate*}}
792}{}
793\AtEndDocument{
794
795  \ifthenelse{\boolean{OptIndex}}%
796  {%
797    \appendix
798    \addcontentsline{toc}{chapter}{Index}
799    {\small
800      \printindex
801      }
802    }{}
803    % Katalog
804  \ifthenelse{\boolean{IsItaRS} \and \not \boolean{IsItaIB} \and \not \boolean{IsItaZHB}}%
805  {%
806    \ifthenelse{\boolean{OptTitleonly}}
807    {}{%
808      \cleardoublepage%
809      \pagestyle{empty}%
810     % \input{./styles/bhb-katalog.tex}%
811      }%
812    }{}%
813  }%
814
815\endinput
816%%
817%% End of file `prismdoc.cls'.
Note: See TracBrowser for help on using the repository browser.