source: anr/anr.sty @ 246

Last change on this file since 246 was 168, checked in by coach, 15 years ago

IA: added CAMKA System

File size: 7.9 KB
RevLine 
[21]1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2\catcode`\@=11
3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4
5%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[156]6\newlength{\desclen}
7\newlength{\yearlen}
8\newlength{\mmlen}
9
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[36]11%{\catcode`\<=1\catcode`\>=2
12%       <\catcode`\{=12\gdef\OBraceTw<{>>
13%       <\catcode`\}=12\gdef\CBraceTw<}>>
14%>
15%\@ifundefined{specHasManual}{\let\specHasManual\relax}{}
16\let\specHasManual\relax
17\let\specCsgManual\relax
[113]18\let\specXilinxOptimization\relax
[36]19
20\def\setMacroInAuxFile#1{%
21    \global\expandafter\edef\csname#1\endcsname{\name}
22    \expandafter\immediate\expandafter\write\@auxout\expandafter{\expandafter\string\expandafter\gdef\expandafter\string\csname #1\endcsname{\name}}
23}
24\def\eoa{end-of-args}
25\def\@novers#1-#2\eoa{#1}
[113]26\def\novers#1{\ifx\relax#1\def\next{{\color{red}FIXME}}\else\def\next{\expandafter\@novers#1\eoa}\fi\next}
[36]27
28%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[150]29\newcount\supportercnt\supportercnt=1
30\newwrite\supporter
31\immediate\openout\supporter=anr-supporter.tex
[168]32\def\letterOfInterest#1#2{{%
33  \let\subsection\relax%
34  \let\label\relax%
35  \let\begin\relax%
36  \let\end\relax%
37  \let\includegraphics\relax%
38  \let\linewidth\relax%
39  \let\newpage\relax%
[150]40  \immediate\write\supporter{%
[168]41    \subsection{#1} \label{supp:\the\supportercnt}}%
[150]42  \immediate\write\supporter{%
[168]43    \begin{center}\includegraphics[width=0.9\linewidth]{#2}\end{center}}%
44    \newpage%
45  }%
46  #1 (page \pageref{supp:\the\supportercnt})%
47  \advance\supportercnt1%
[150]48}
49
50\def\letterOfInterestNb{?}
51\def\letterOfInterestClose{
[168]52  \advance\supportercnt-1
[150]53  \immediate\closeout\supporter
54  \immediate\write\@auxout{%
55    \string\gdef\string\letterOfInterestNb{\the\supportercnt}
56  }
57}
58
59
60%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[36]61\let\ganttlf\relax
[35]62\newwrite\ganttdata
63\immediate\openout\ganttdata=anr.gantt
64
[21]65\def\enable{enable}
66\def\disable{disable}
67\def\leader{leader}
68\newenvironment{taskinfo}%
69{%
70\let\ALL\disable%
71\let\IRISA\disable%
72\let\LIP\disable%
73\let\TIMA\disable%
74\let\UBS\disable%
75\let\UPMC\disable%
[27]76\let\XILINX\disable%
[21]77\let\BULL\disable%
78\let\THALES\disable%
[49]79\let\NAVTEL\disable%
[21]80\let\ZIED\disable%
81}{%
82\ifx\ALL\enable%
83  \ifx\IRISA\disable\let\IRISA\enable\fi%
84  \ifx\LIP\disable\let\LIP\enable\fi%
85  \ifx\UPMC\disable\let\UPMC\enable\fi%
86  \ifx\TIMA\disable\let\TIMA\enable\fi%
87  \ifx\UBS\disable\let\UBS\enable\fi%
[27]88  \ifx\XILINX\disable\let\XILINX\enable\fi%
[21]89  \ifx\BULL\disable\let\BULL\enable\fi%
90  \ifx\THALES\disable\let\THALES\enable\fi%
[49]91  \ifx\NAVTEL\disable\let\NAVTEL\enable\fi%
[21]92  \ifx\ZIED\disable\let\ZIED\enable\fi%
93\fi%
[27]94\def\@leader{\begin{small}\textcolor{red}{lead.}\end{small}}
95\def\@partner{\begin{small}\textcolor{blue}{part.}\end{small}}
96\def\@IRISA{\ifx\IRISA\disable{}\else\ifx\IRISA\enable{\@partner}\else{\@leader}\fi\fi}%
97\def\@LIP{\ifx\LIP\disable{}\else\ifx\LIP\enable{\@partner}\else{\@leader}\fi\fi}%
98\def\@UPMC{\ifx\UPMC\disable{}\else\ifx\UPMC\enable{\@partner}\else{\@leader}\fi\fi}%
99\def\@TIMA{\ifx\TIMA\disable{}\else\ifx\TIMA\enable{\@partner}\else{\@leader}\fi\fi}%
100\def\@UBS{\ifx\UBS\disable{}\else\ifx\UBS\enable{\@partner}\else{\@leader}\fi\fi}%
[114]101\def\@XILINX{\ifx\XILINX\disable{}\else\ifx\XILINX\enable{\@partner}\else{\@leader}\fi\fi}%
[27]102\def\@BULL{\ifx\BULL\disable{}\else\ifx\BULL\enable{\@partner}\else{\@leader}\fi\fi}%
103\def\@THALES{\ifx\THALES\disable{}\else\ifx\THALES\enable{\@partner}\else{\@leader}\fi\fi}%
[49]104\def\@NAVTEL{\ifx\NAVTEL\disable{}\else\ifx\NAVTEL\enable{\@partner}\else{\@leader}\fi\fi}%
[27]105\def\@ZIED{\ifx\ZIED\disable{}\else\ifx\ZIED\enable{\@partner}\else{\@leader}\fi\fi}%
[114]106\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}\hline
107\Sirisa  & \Slip  & \Stima  & \Subs  & \Supmc  & \Sxilinx & \Sbull  & \Sthales & \Snavtel & \Szied \\\hline
108\@IRISA  & \@LIP  & \@TIMA  & \@UBS  & \@UPMC  & \@XILINX & \@BULL  & \@THALES & \@NAVTEL & \@ZIED \\\hline
[21]109\end{tabular}\par
110}
111
112%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113\newenvironment{objectif}%
114{\begin{description}\item[Objectives]}
115{\end{description}}
116
117%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[59]118\newcount\taskcnt\taskcnt=0
[35]119\newcount\subtaskcnt
120\newcount\livrablecnt
[52]121\newenvironment{workpackage}%
[35]122{\global\advance\taskcnt1
123 \global\subtaskcnt0
124 \def\taskname{T\the\taskcnt}%
[21]125 \begin{description}%
[123]126 %\let\itemsave\item%
127 \def\subtask{%
[35]128    \global\advance\subtaskcnt1
129    \def\subtaskname{S\taskname-\the\subtaskcnt}%
[123]130    \item[\subtaskname]}}
[21]131{\end{description}}
132
133%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[151]134\def\writeganttinfo#1#2#3#4#5#6{{%
[52]135    \let\xcoach\relax
136    \let\xcoachplus\relax
137    \let\irisa\relax    \let\Sirisa\relax
138    \let\lip\relax      \let\Slip\relax
139    \let\tima\relax     \let\Stima\relax
140    \let\ubs\relax      \let\Subs\relax
141    \let\upmc\relax     \let\Supmc\relax
142    \let\altera\relax   \let\Saltera\relax
143    \let\xilinx\relax   \let\Sxilinx\relax
144    \let\bull\relax     \let\Sbull\relax
145    \let\thales\relax   \let\Sthales\relax
146    \let\zied\relax     \let\Szied\relax
147    \let\navtel\relax   \let\Snavtel\relax
148    \immediate\write\ganttdata{%
149      T=\the\taskcnt\space S=\the\subtaskcnt\space%
150      D=\the\livrablecnt\space V=\vers\space%
[151]151      BM=#1 EM=#2 R=#3 PART={#4} KIND={#5} TITLE=#6%
[52]152    }
153}}
[21]154\newenvironment{livrable}%
155{%
[52]156 \newcount\verscnt\verscnt=-1
157 \newif\ifIsLivrableStarted\IsLivrableStartedfalse
[49]158 \newif\ifLivrableTopLine\LivrableTopLinetrue
159 \def\livrableTableDef{\begin{tabular}{|c|c|c|c|p{.625\linewidth}|}\hline}
160 \def\livrableTableLine##1##2##3##4{%
161    \makebox[3.5em]{\begin{small}##1\end{small}} &
162    \makebox[2.2em]{\begin{small}##2\end{small}} &
163    \makebox[1.5em]{\begin{small}##3\end{small}} &
164    \makebox[2.2em]{\begin{small}##4\end{small}} &
165 }
166 \def\livrableTableTopLine{%
167   \livrableTableLine{number}{date}{type}{resp.} description
168 }
[35]169 \livrablecnt-1
[123]170 \ifvmode \else\par\fi
[52]171   
172 \def\itemV##1##2##3##4##5{%
173    \ifIsLivrableStarted
174        \global\advance\verscnt1
175    \else
176        \global\advance\livrablecnt1
177        \global\verscnt1
178    \fi
179    \def\vers{V\the\verscnt}
[35]180    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
[151]181    \writeganttinfo{##1}{##2}{none}{##4}{##3}{##5}
[21]182    \\\hline
[49]183    \ifLivrableTopLine
[52]184      \ifIsLivrableStarted\else\hline\hline\fi
[49]185    \else
[52]186      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
[49]187    \fi
188    \global\LivrableTopLinefalse
[52]189    \global\IsLivrableStartedtrue
190    %\global\LivrableStartfalse
[49]191    \livrableTableLine%
192        {\textsc{\name}}%
[52]193        {\textsc{T0+##2}}%
194        {\textsc{##3}}%
[49]195        {\textsc{##4}}%
[21]196 }
[52]197 \def\itemL##1##2##3##4##5##6{%
198    \ifIsLivrableStarted
199        %\global\advance\verscnt1
200    \else
201        \global\advance\livrablecnt1
202        %\global\verscnt1
203    \fi
204    \def\vers{VF}
205    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
[151]206    \writeganttinfo{##1}{##2}{##6}{##4}{##3}{##5}
[52]207    \\\hline
208    \ifLivrableTopLine
209      \ifIsLivrableStarted\else\hline\hline\fi
210    \else
211      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
212    \fi
213    \global\LivrableTopLinefalse
214    \global\IsLivrableStartedfalse
215    %\global\LivrableStartfalse
216    \livrableTableLine%
217        {\textsc{\name}}%
218        {\textsc{T0+##2}}%
219        {\textsc{##3}}%
220        {\textsc{##4}}%
221 }
[75]222 \def\CoutHorsD##1##2##3##4##5{%
223    \let\xcoach\relax
224    \let\xcoachplus\relax
225    \let\irisa\relax    \let\Sirisa\relax
226    \let\lip\relax      \let\Slip\relax
227    \let\tima\relax     \let\Stima\relax
228    \let\ubs\relax      \let\Subs\relax
229    \let\upmc\relax     \let\Supmc\relax
230    \let\altera\relax   \let\Saltera\relax
231    \let\xilinx\relax   \let\Sxilinx\relax
232    \let\bull\relax     \let\Sbull\relax
233    \let\thales\relax   \let\Sthales\relax
234    \let\zied\relax     \let\Szied\relax
235    \let\navtel\relax   \let\Snavtel\relax
236    \immediate\write\ganttdata{%
237      T=\the\taskcnt\space S=\the\subtaskcnt\space%
238      D=none BM=##1 EM=##2 R=##5 PART={##3} TITLE=##4%
239    }
240 }
[21]241% \begin{small}
[49]242 \livrableTableDef
243 \livrableTableTopLine
244 %\begin{tabular}{|c|c|c|c|p{.55\linewidth}|}\hline%
245 %\makebox[3.5em]{number} & \makebox[1.5em]{date} & type & resp. & description
[21]246}
[49]247{\\\hline\end{tabular}\\%
[21]248%\end{small}\\%
249}
250
251%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
252\catcode`\@=12
253%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracBrowser for help on using the repository browser.