source: anr/anr.sty @ 153

Last change on this file since 153 was 151, checked in by coach, 15 years ago

IA: added kind in delivrable tables

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