source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/doc/prismdoc.cls @ 4775

Last change on this file since 4775 was 4775, checked in by aclsce, 4 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

  • Property svn:executable set to *
File size: 27.6 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 \par}
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,angle=-90]{figures/logo_oasis3_guide}
364               \vspace*{-\topsep}
365             \end{center}
366                 }}}
367                                % Title
368        \PRISMDOCDebugBox{\put(2.8,9.3){\dashbox{0.1}(9.6,2.5)[t]{}}}
369        \put(2.8,9.3){\makebox(9.6,2.5)[t]{
370            \parbox{9cm}{
371              \begin{center}
372                \vspace*{-\topsep}
373              {\PRISMDOCFont{T1}{ptm}{b}{n}{14pt}{18pt}
374                \PRISMDOCtitel\par}
375              \vspace*{-\topsep}
376            \end{center}}}}
377                                % Authors
378      \PRISMDOCDebugBox{\put(3.1,7.3){\dashbox{0.1}(9,1.5)[t]{}}}
379      \put(3.1,7.3){\makebox(9,1.5)[t]{
380          \parbox{15cm}{
381            \begin{center}
382              \vspace*{-\topsep}
383              {\PRISMDOCFont{T1}{ptm}{m}{sl}{11pt}{12pt}
384                \PRISMDOCautor\par}
385              \vspace*{-\topsep}
386            \end{center}}}}
387%                                 % Volume
388%       \PRISMDOCDebugBox{\put(5.35,3.3){\dashbox{0.1}(4.5,0.4)[t]{}}}
389%       \put(5.35,3.3){\makebox(4.5,0.4)[t]{
390%           \parbox{4.5cm}{
391%             \begin{center}
392%               \vspace*{-\topsep}
393%               {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
394%                 PRISM-\PRISMDOCtype-\PRISMDOCnum}
395%               \vspace*{-\topsep}
396%             \end{center}}}}
397                                % Edition
398      \PRISMDOCDebugBox{\put(4.35,1.1){\dashbox{0.1}(6.5,0.4)[t]{}}}
399      \put(4.35,1.1){\makebox(6.5,0.4)[t]{
400          \parbox{6.5cm}{
401            \begin{center}
402              \vspace*{-\topsep}
403              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
404                \PRISMDOCversion}
405              \vspace*{-\topsep}
406            \end{center}}}}
407                                % Last changed: ??
408      \PRISMDOCDebugBox{\put(4.35,2.3){\dashbox{0.1}(6.5,0.5)[t]{}}}
409%S.L. left coordinate of box=\put(N.N,...)
410%S.L. height of lower frame=\put(...,N.N)
411%S.L. width of text box= \parbox{N.Ncm}
412\put(4.35,0.3){\makebox(6.5,0.5)[t]{
413          \parbox{6.5cm}{   
414            \begin{center}
415              \vspace*{-\topsep}
416              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
417                \PRISMDOCdate }
418              \vspace*{-\topsep}
419            \end{center}}}}
420                                % Notes
421      \PRISMDOCDebugBox{\put(0,1.4){\dashbox{0.1}(13,1.5)[t]{}}}
422      \put(0,1.4){\makebox(13,1.5)[t]{
423          \parbox{13cm}{
424            {\PRISMDOCFont{T1}{ptm}{m}{n}{10pt}{12pt}\PRISMDOCremark}}}}
425      }{ % else
426%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
427                                % IB: RS oder ZHB
428      \PRISMDOCDebugBox{\put(3.1,14.3){\dashbox{0.1}(9,0.9)[t]{}}}
429      \put(3.1,14.3){\makebox(9,0.9)[t]{
430          \parbox{9cm}{
431            \begin{center}
432              \vspace*{-\topsep}
433              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
434                \ifthenelse{\boolean{IsItaZHB}}%
435                  {\PRISMDOCZhbTitle}%
436                  {%
437                    \ifthenelse{\boolean{IsItaIB}}%
438                    {\PRISMDOCIbTitle}%
439                    }%
440                  }%
441                \vspace*{-\topsep}
442              \end{center}}}}
443                                % IB: Title
444        \PRISMDOCDebugBox{\put(2.6,10.8){\dashbox{0.1}(10.0,2.5)[t]{}}}
445        \put(2.6,10.8){\makebox(10.0,2.5)[t]{
446            \parbox{9cm}{
447              \begin{center}
448                \vspace*{-\topsep}
449              {\PRISMDOCFont{T1}{ptm}{b}{n}{14pt}{18pt}
450                \PRISMDOCtitel\par}
451              \vspace*{-\topsep}
452            \end{center}}}}
453                                % IB: Authors
454      \PRISMDOCDebugBox{\put(3.1,8.0){\dashbox{0.1}(9,1.5)[t]{}}}
455      \put(3.1,8.0){\makebox(9,1.5)[t]{
456          \parbox{9cm}{
457            \begin{center}
458              \vspace*{-\topsep}
459              {\PRISMDOCFont{T1}{ptm}{m}{sl}{11pt}{12pt}
460                \PRISMDOCautor\par}
461              \vspace*{-\topsep}
462            \end{center}}}}
463%                                 % IB: Volume
464%       \PRISMDOCDebugBox{\put(5.35,7.0){\dashbox{0.1}(4.5,0.4)[t]{}}}
465%       \put(5.35,7.0){\makebox(4.5,0.4)[t]{
466%           \parbox{4.5cm}{
467%             \begin{center}
468%               \vspace*{-\topsep}
469%               {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
470%                 PRISM-\PRISMDOCtype-\PRISMDOCnum}
471%               \vspace*{-\topsep}
472%             \end{center}}}}
473                                % IB: Edition
474      \PRISMDOCDebugBox{\put(4.35,5.1){\dashbox{0.1}(6.5,0.4)[t]{}}}
475      \put(4.35,5.1){\makebox(6.5,0.4)[t]{
476          \parbox{6.5cm}{
477            \begin{center}
478              \vspace*{-\topsep}
479              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
480                \PRISMDOCversion}
481              \vspace*{-\topsep}
482            \end{center}}}}
483                                % IB: Last changed
484      \PRISMDOCDebugBox{\put(4.35,6.3){\dashbox{0.1}(6.5,0.5)[t]{}}}
485      \put(4.35,6.3){\makebox(6.5,0.5)[t]{
486          \parbox{6.5cm}{
487            \begin{center}
488              \vspace*{-\topsep}
489              {\PRISMDOCFont{T1}{ptm}{m}{n}{12pt}{14pt}
490                (last change: \PRISMDOCdate)}
491              \vspace*{-\topsep}
492            \end{center}}}}
493                                % IB: Remark
494      \PRISMDOCDebugBox{\put(0,1.4){\dashbox{0.1}(13,1.5)[t]{}}}
495      \put(0,1.4){\makebox(13,1.5)[t]{
496          \parbox{15cm}{
497            {\PRISMDOCFont{T1}{ptm}{m}{n}{10pt}{12pt}\PRISMDOCremark}}}}
498      }
499      \end{picture}
500\newpage
501    \thispagestyle{empty}
502    \ifthenelse{\boolean{OptWide}}%
503    {\hspace*{5mm}}{}
504    \begin{picture}(15.2,24.5)
505                                % Body for Text
506    \PRISMDOCDebugBox{\put(0,0){\dashbox{0.1}(15.2,24.9){}}}
507
508    \ifthenelse{\boolean{IsItaIB}}{}%else
509    {
510    \PRISMDOCDebugBox{\put(0,21.4){\dashbox{0.1}(15,3.4)[t]{}}}
511    \ifthenelse{\boolean{OptNocopy}}{}%else
512    {
513      \put(0,21.4){\makebox(15,3.4)[t]{
514          \parbox{15cm}{
515            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}Copyright Notice\\[0.5ex]}
516            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
517            \copyright\ Copyright 2013 by CERFACS \\
518            All rights reserved.\\
519            No parts of this document should be either reproduced or
520            commercially used without prior agreement
521            by CERFACS representatives.  \\
522            }}}
523      }
524
525      \PRISMDOCDebugBox{\put(0,9){\dashbox{0.1}(15,5.2)[t]{}}}
526      \put(0,9){\makebox(15,5.2)[t]{
527          \parbox{15cm}{
528            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}
529              How to get documentation ?\\[0.5ex]}
530            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
531            The documentation can be downloaded from the OASIS web site under the URL : \\
532            http://oasis.enes.org \\
533            }}}
534
535      \PRISMDOCDebugBox{\put(0,16.2){\dashbox{0.1}(15,5.2)[t]{}}}
536      \put(0,16.2){\makebox(15,5.2)[t]{
537          \parbox{15cm}{
538            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}
539              How to get assistance?\\[0.5ex]}
540            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
541            Assistance can be obtained as listed below.
542            }}}
543
544      \PRISMDOCDebugBox{\put(0,14.4){\dashbox{0.1}(15,2.2)[t]{}}}
545      \put(0,16.6){\makebox(15,2.2)[t]{
546          \parbox{15cm}{
547            {\PRISMDOCFont{T1}{ptm}{b}{n}{12pt}{14pt}
548              Phone Numbers and Electronic Mail Adresses
549              \\[0.5ex]}
550%            \PRISMDOCFont{T1}{ptm}{m}{n}{11pt}{13pt}
551%            Electronic mail adresses of the individual work packages are composed as follows :\\
552%            \textbf{prism\_ \textit{work package} @prism.enes.org}
553            }}}
554
555      \PRISMDOCDebugBox{\put(0,4.1){\dashbox{0.1}(15,11.0)[t]{}}}
556      \put(0,7.1){\makebox(15,11.0)[t]{
557          \parbox{15cm}{
558            \newcommand{\PRISMDOCtblbf}{\PRISMDOCFont{T1}{ptm}{b}{n}{9.8pt}{11pt}}
559            \newcommand{\PRISMDOCtblit}{\PRISMDOCFont{T1}{ptm}{m}{it}{9.8pt}{11pt}}
560            \newcommand{\PRISMDOCtblbi}{\PRISMDOCFont{T1}{ptm}{b}{it}{9.8pt}{11pt}}
561            \PRISMDOCFont{T1}{ptm}{m}{n}{9.8pt}{11pt}
562            \renewcommand{\arraystretch}{1.11}
563            \setlength{\tabcolsep}{4pt}
564            \begin{tabular}[t]{|p{4.6cm}|p{3.1cm}|p{2.2cm}|p{3.1cm}|}
565              \hline%\rowcolor[gray]{0.2}
566              \PRISMDOCtblbf Name&
567              \PRISMDOCtblbf Phone &
568              \PRISMDOCtblbf Affiliation &
569              \PRISMDOCtblbf e-mail \\
570              \hline\hline
571              \PRISMDOCfname\par & \PRISMDOCfphone\par & \PRISMDOCfaff\par & \PRISMDOCfem\par \\
572              \PRISMDOCsname\par & \PRISMDOCsphone\par & \PRISMDOCsaff\par & \par \\
573              \hline
574            \end{tabular}
575            }}}
576
577     \PRISMDOCDebugBox{\put(0,-0.5){\dashbox{0.1}(15,4.0)[b]{}}}
578      \put(0,-0.5){\makebox(15,4.0)[b]{
579          \parbox{15cm}{
580            \renewcommand{\arraystretch}{1.10}
581            \PRISMDOCFont{T1}{ptm}{m}{n}{9.8pt}{11pt}
582            }}}
583      } % IsItaIB
584    \end{picture}
585    \newpage
586    \pagenumbering{roman}
587    \setcounter{page}{1}
588    \ifthenelse{\boolean{OptTitleonly}}{}%
589    {
590      {
591        \parskip=0pt
592        \tableofcontents
593        \ifthenelse{\boolean{OptFigureList}}{
594          \cleardoublepage
595          \listoffigures
596          }{}
597        \ifthenelse{\boolean{OptTableList}}{
598          \cleardoublepage
599          \listoftables
600          }{}
601        \ifthenelse{\boolean{OptExampleList}}{
602          \cleardoublepage
603          \listof{Example_int}{List of Examples}
604          }{}
605        \ifthenelse{\boolean{OptProgramList}}{
606          \cleardoublepage
607          \listof{Program_int}{List of Programs}
608          }{}
609        \ifthenelse{\boolean{OptJobList}}{
610          \cleardoublepage
611          \listof{Job_int}{List of Jobs}
612          }{}
613        }
614      \cleardoublepage
615      \ifthenelse{\not\boolean{OptNoArabic}}{
616        \pagenumbering{arabic}
617      }{}
618      \cleardoublepage
619      }
620    }
621}{}
622
623
624\newcommand{\Indextt}[1]{\index{#1@\texttt{#1}}}
625\newlength{\PRISMDOCFrameskip}
626\setlength{\PRISMDOCFrameskip}{3pt}
627\newsavebox{\ffbox}
628\newlength{\ffboxl}
629\newenvironment{Frame}[1][\linewidth]{ %
630\begin{lrbox}{\ffbox}
631  \setlength{\ffboxl}{#1}
632  \addtolength{\ffboxl}{-4\fboxrule}
633  \addtolength{\ffboxl}{-4\fboxsep}
634  \begin{minipage}[t]{\ffboxl}
635}                                    %
636{                                    %
637  \end{minipage}
638\end{lrbox}
639\ifthenelse{\boolean{hmode}}{
640  \hskip\parfillskip\\[\PRISMDOCFrameskip]
641}{\vspace{\PRISMDOCFrameskip}}
642\noindent\fbox{\usebox{\ffbox}\\}%
643\vspace{\PRISMDOCFrameskip}%
644}%
645\newcommand{\Mail}[1]{\textbf{#1}}
646\newcommand{\Internet}[1]{\textbf{\texttt{#1}}}
647\newcommand{\Url}[1]{\textbf{\texttt{#1}}}
648\newcommand{\Ftp}[1]{\textbf{\texttt{#1}}}
649\newcommand{\Unixcmd}[1]{\textbf{\texttt{#1}}}
650\newcommand{\Unixopt}[1]{\textbf{\texttt{#1}}}
651\newcommand{\Varunixopt}[1]{\textbf{\texttt{\textit{#1}}}}
652\newcommand{\Shellvar}[1]{\textbf{\texttt{\$#1}}}
653\newcommand{\Path}[1]{\textbf{\texttt{#1}}}
654\newcommand{\File}[1]{\texttt{#1}}
655\newcommand{\Varfile}[1]{\texttt{\textit{#1}}}
656\newcommand{\Prompt}[1]{\texttt{#1}}
657\newcommand{\Unixmessage}[1]{\texttt{#1}}
658\newcommand{\Queue}[1]{\texttt{\textbf{#1}}}
659\newcommand{\Keyword}[1]{\texttt{#1}}
660\newcommand{\Keybrd}[1]{\fbox{\texttt{#1}}}
661%\newcommand{\Tki}[1]{\htmladdnormallink{TKI-#1}%
662%  {http://prism.enes.org}}
663\newenvironment{Indent}{ %
664\begin{list}{}{\topsep=0pt}\item[]
665}%
666{%
667\end{list}
668}
669\newcommand{\Myindent}{\hspace*{\leftmargin}}
670\newcommand{\Crayfilesrv}{\/Cray file server\/}
671\newcommand{\Crayfs}{\/Cray file server\/}
672\newcommand{\Craycs}{\/CRAY J90\/}
673\newcommand{\Craympp}{\/CRAY T3E\/}
674\newcommand{\Craypvp}{\/CRAY T90\/}
675\newcommand{\CrayfilesrvT}{Cray file server}
676\newcommand{\CrayfsT}{Cray file server}
677\newcommand{\CraycsT}{CRAY J90}
678\newcommand{\CraymppT}{CRAY T3E}
679\newcommand{\CraypvpT}{CRAY T90}
680\newcommand{\Jump}{\/Jump\/}
681\newcommand{\Homechar}{$\sim$}
682\newcommand{\Backslash}{$\backslash$}
683\newcommand{\Kea}{[}
684\newcommand{\Kez}{]}
685\newcommand\fs@Boxed{\def\@fs@cfont{\bfseries}\let\@fs@capt\floatc@plain
686  \def\@fs@pre{
687    \setbox\@currbox\vbox{%
688      \hbadness10000%
689      \vbox{%
690        \hrule%
691        \hbox to\hsize{%
692          \vrule\kern2pt%
693          \vbox{%
694            \kern5pt\box\@currbox\kern5pt%
695            }%
696          \kern-2.7pt\vrule}\hrule}%
697      }%
698    }%
699  \def\@fs@mid{\kern3pt}%
700  \def\@fs@post{}\let\@fs@iftopcapt\iffalse}
701\floatstyle{Boxed}
702\setlength{\floatsep}{6pt plus 2pt minus2pt}
703\setlength{\textfloatsep}{10pt plus 2pt minus2pt}
704\setlength{\intextsep}{6pt plus 2pt minus2pt}
705\setlength{\abovecaptionskip}{3pt}
706
707\ifthenelse{\boolean{IsItaRS}}{
708  \newfloat{Program_int}{htbp}{lop}[chapter]
709  \newfloat{Job_int}{htbp}{loj}[chapter]
710  \newfloat{Example_int}{htbp}{loe}[chapter]
711}{
712  \newfloat{Program_int}{htbp}{lop}
713  \newfloat{Job_int}{htbp}{loj}
714  \newfloat{Example_int}{htbp}{loe}
715}
716\floatname{Example_int}{Example}
717\floatname{Program_int}{Program}
718\floatname{Job_int}{Job}
719\ifthenelse{\boolean{OptOldFloat}}
720{%
721  \newenvironment{Example}%
722  {\begin{Example_int}[H]\small\begin{alltt}}%
723  {\end{alltt}\vspace*{-2ex}\end{Example_int}}%
724  \newenvironment{Longexample}%
725  {\begin{Example_int}\small}%
726  {\end{Example_int}}%
727  %
728  \newenvironment{Job}%
729  {\begin{Job_int}[H]\small\begin{alltt}}%
730  {\end{alltt}\vspace*{-2ex}\end{Job_int}}
731  \newenvironment{Longjob}%
732  {\begin{Job_int}\small}%
733  {\end{Job_int}}%
734  \newenvironment{Program}%
735  {\begin{Program_int}[H]\small\begin{alltt}}%
736  {\end{alltt}\vspace*{-2ex}\end{Program_int}}%
737  \newenvironment{Longprogram}%
738  {\begin{Program_int}\small}%
739  {\end{Program_int}}%
740}{ %else
741  \newenvironment{Shortexample}%
742  {\begin{Frame}\small\begin{alltt}}%
743  {\end{alltt}\end{Frame}}%
744  \newenvironment{Example}[1][htbp]%
745  {\begin{Example_int}[#1]\small}%
746  {\end{Example_int}}%
747  %
748  \newenvironment{Shortjob}%
749  {\begin{Frame}\small\begin{alltt}}%
750  {\end{alltt}\end{Frame}}
751  \newenvironment{Job}[1][htbp]%
752  {\begin{Job_int}[#1]\small}%
753  {\end{Job_int}}%
754  \newenvironment{Shortprogram}%
755  {\begin{Frame}\small\begin{alltt}}%
756  {\end{alltt}\end{Frame}}%
757  \newenvironment{Program}[1][htbp]%
758  {\begin{Program_int}[#1]\small}%
759  {\end{Program_int}}%
760}
761\ifthenelse{\boolean{IsItaRS}}
762{%
763  \floatstyle{Boxed}
764% Comment line below if you dont want a frome around the figures
765  \restylefloat{figure}
766}{}
767\newenvironment{Itemize*}%
768{ \partopsep=0pt%
769  \begin{itemize}%
770    \vspace*{-\topsep}%
771    \parskip=0pt\itemsep=0pt\partopsep=0pt%%
772}%
773{%
774  \vspace*{-\topsep}%
775\end{itemize}%
776}
777\newenvironment{Enumerate*}%
778{ \partopsep=0pt%
779  \begin{enumerate}%
780    \vspace*{-\topsep}%
781    \parskip=0pt\itemsep=0pt\partopsep=0pt%%
782}%
783{%
784  \vspace*{-\topsep}%
785\end{enumerate}%
786}
787\newcommand{\longpage}%
788{\enlargethispage{\baselineskip}\PRISMDOCDebugBox{\marginpar{\fbox{+}}}}
789\newcommand{\shortpage}%
790{\enlargethispage{-\baselineskip}\PRISMDOCDebugBox{\marginpar{\fbox{-}}}}
791
792\ifthenelse{\boolean{OptLow}}%
793{%
794\newenvironment{itemize*}%
795{\begin{Itemize*}}%
796{\end{Itemize*}}
797\newenvironment{enumerate*}%
798{\begin{Enumerate*}}%
799{\end{Enumerate*}}
800}{}
801\AtEndDocument{
802
803  \ifthenelse{\boolean{OptIndex}}%
804  {%
805    \appendix
806    \addcontentsline{toc}{chapter}{Index}
807    {\small
808      \printindex
809      }
810    }{}
811    % Katalog
812  \ifthenelse{\boolean{IsItaRS} \and \not \boolean{IsItaIB} \and \not \boolean{IsItaZHB}}%
813  {%
814    \ifthenelse{\boolean{OptTitleonly}}
815    {}{%
816      \cleardoublepage%
817      \pagestyle{empty}%
818     % \input{./styles/bhb-katalog.tex}%
819      }%
820    }{}%
821  }%
822
823\endinput
824%%
825%% End of file `prismdoc.cls'.
Note: See TracBrowser for help on using the repository browser.