source: anr/anr.sty @ 248

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

IA: added CAMKA System

File size: 7.9 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2\catcode`\@=11
3%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4
5%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6\newlength{\desclen}
7\newlength{\yearlen}
8\newlength{\mmlen}
9
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
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
18\let\specXilinxOptimization\relax
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}
26\def\novers#1{\ifx\relax#1\def\next{{\color{red}FIXME}}\else\def\next{\expandafter\@novers#1\eoa}\fi\next}
27
28%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29\newcount\supportercnt\supportercnt=1
30\newwrite\supporter
31\immediate\openout\supporter=anr-supporter.tex
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%
40  \immediate\write\supporter{%
41    \subsection{#1} \label{supp:\the\supportercnt}}%
42  \immediate\write\supporter{%
43    \begin{center}\includegraphics[width=0.9\linewidth]{#2}\end{center}}%
44    \newpage%
45  }%
46  #1 (page \pageref{supp:\the\supportercnt})%
47  \advance\supportercnt1%
48}
49
50\def\letterOfInterestNb{?}
51\def\letterOfInterestClose{
52  \advance\supportercnt-1
53  \immediate\closeout\supporter
54  \immediate\write\@auxout{%
55    \string\gdef\string\letterOfInterestNb{\the\supportercnt}
56  }
57}
58
59
60%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61\let\ganttlf\relax
62\newwrite\ganttdata
63\immediate\openout\ganttdata=anr.gantt
64
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%
76\let\XILINX\disable%
77\let\BULL\disable%
78\let\THALES\disable%
79\let\NAVTEL\disable%
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%
88  \ifx\XILINX\disable\let\XILINX\enable\fi%
89  \ifx\BULL\disable\let\BULL\enable\fi%
90  \ifx\THALES\disable\let\THALES\enable\fi%
91  \ifx\NAVTEL\disable\let\NAVTEL\enable\fi%
92  \ifx\ZIED\disable\let\ZIED\enable\fi%
93\fi%
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}%
101\def\@XILINX{\ifx\XILINX\disable{}\else\ifx\XILINX\enable{\@partner}\else{\@leader}\fi\fi}%
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}%
104\def\@NAVTEL{\ifx\NAVTEL\disable{}\else\ifx\NAVTEL\enable{\@partner}\else{\@leader}\fi\fi}%
105\def\@ZIED{\ifx\ZIED\disable{}\else\ifx\ZIED\enable{\@partner}\else{\@leader}\fi\fi}%
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
109\end{tabular}\par
110}
111
112%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
113\newenvironment{objectif}%
114{\begin{description}\item[Objectives]}
115{\end{description}}
116
117%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
118\newcount\taskcnt\taskcnt=0
119\newcount\subtaskcnt
120\newcount\livrablecnt
121\newenvironment{workpackage}%
122{\global\advance\taskcnt1
123 \global\subtaskcnt0
124 \def\taskname{T\the\taskcnt}%
125 \begin{description}%
126 %\let\itemsave\item%
127 \def\subtask{%
128    \global\advance\subtaskcnt1
129    \def\subtaskname{S\taskname-\the\subtaskcnt}%
130    \item[\subtaskname]}}
131{\end{description}}
132
133%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
134\def\writeganttinfo#1#2#3#4#5#6{{%
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      BM=#1 EM=#2 R=#3 PART={#4} KIND={#5} TITLE=#6%
152    }
153}}
154\newenvironment{livrable}%
155{%
156 \newcount\verscnt\verscnt=-1
157 \newif\ifIsLivrableStarted\IsLivrableStartedfalse
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 }
169 \livrablecnt-1
170 \ifvmode \else\par\fi
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}
180    \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}%
181    \writeganttinfo{##1}{##2}{none}{##4}{##3}{##5}
182    \\\hline
183    \ifLivrableTopLine
184      \ifIsLivrableStarted\else\hline\hline\fi
185    \else
186      \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi
187    \fi
188    \global\LivrableTopLinefalse
189    \global\IsLivrableStartedtrue
190    %\global\LivrableStartfalse
191    \livrableTableLine%
192        {\textsc{\name}}%
193        {\textsc{T0+##2}}%
194        {\textsc{##3}}%
195        {\textsc{##4}}%
196 }
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}%
206    \writeganttinfo{##1}{##2}{##6}{##4}{##3}{##5}
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 }
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 }
241% \begin{small}
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
246}
247{\\\hline\end{tabular}\\%
248%\end{small}\\%
249}
250
251%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
252\catcode`\@=12
253%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracBrowser for help on using the repository browser.