[21] | 1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 2 | \catcode`\@=11 |
---|
| 3 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 4 | |
---|
| 5 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
[36] | 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 |
---|
[113] | 13 | \let\specXilinxOptimization\relax |
---|
[36] | 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} |
---|
[113] | 21 | \def\novers#1{\ifx\relax#1\def\next{{\color{red}FIXME}}\else\def\next{\expandafter\@novers#1\eoa}\fi\next} |
---|
[36] | 22 | |
---|
| 23 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 24 | \let\ganttlf\relax |
---|
[35] | 25 | \newwrite\ganttdata |
---|
| 26 | \immediate\openout\ganttdata=anr.gantt |
---|
| 27 | |
---|
[21] | 28 | \def\enable{enable} |
---|
| 29 | \def\disable{disable} |
---|
| 30 | \def\leader{leader} |
---|
| 31 | \newenvironment{taskinfo}% |
---|
| 32 | {% |
---|
| 33 | \let\ALL\disable% |
---|
| 34 | \let\IRISA\disable% |
---|
| 35 | \let\LIP\disable% |
---|
| 36 | \let\TIMA\disable% |
---|
| 37 | \let\UBS\disable% |
---|
| 38 | \let\UPMC\disable% |
---|
[27] | 39 | \let\XILINX\disable% |
---|
[21] | 40 | \let\BULL\disable% |
---|
| 41 | \let\THALES\disable% |
---|
[49] | 42 | \let\NAVTEL\disable% |
---|
[21] | 43 | \let\ZIED\disable% |
---|
| 44 | }{% |
---|
| 45 | \ifx\ALL\enable% |
---|
| 46 | \ifx\IRISA\disable\let\IRISA\enable\fi% |
---|
| 47 | \ifx\LIP\disable\let\LIP\enable\fi% |
---|
| 48 | \ifx\UPMC\disable\let\UPMC\enable\fi% |
---|
| 49 | \ifx\TIMA\disable\let\TIMA\enable\fi% |
---|
| 50 | \ifx\UBS\disable\let\UBS\enable\fi% |
---|
[27] | 51 | \ifx\XILINX\disable\let\XILINX\enable\fi% |
---|
[21] | 52 | \ifx\BULL\disable\let\BULL\enable\fi% |
---|
| 53 | \ifx\THALES\disable\let\THALES\enable\fi% |
---|
[49] | 54 | \ifx\NAVTEL\disable\let\NAVTEL\enable\fi% |
---|
[21] | 55 | \ifx\ZIED\disable\let\ZIED\enable\fi% |
---|
| 56 | \fi% |
---|
[27] | 57 | \def\@leader{\begin{small}\textcolor{red}{lead.}\end{small}} |
---|
| 58 | \def\@partner{\begin{small}\textcolor{blue}{part.}\end{small}} |
---|
| 59 | \def\@IRISA{\ifx\IRISA\disable{}\else\ifx\IRISA\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
| 60 | \def\@LIP{\ifx\LIP\disable{}\else\ifx\LIP\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
| 61 | \def\@UPMC{\ifx\UPMC\disable{}\else\ifx\UPMC\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
| 62 | \def\@TIMA{\ifx\TIMA\disable{}\else\ifx\TIMA\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
| 63 | \def\@UBS{\ifx\UBS\disable{}\else\ifx\UBS\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
[114] | 64 | \def\@XILINX{\ifx\XILINX\disable{}\else\ifx\XILINX\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
[27] | 65 | \def\@BULL{\ifx\BULL\disable{}\else\ifx\BULL\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
| 66 | \def\@THALES{\ifx\THALES\disable{}\else\ifx\THALES\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
[49] | 67 | \def\@NAVTEL{\ifx\NAVTEL\disable{}\else\ifx\NAVTEL\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
[27] | 68 | \def\@ZIED{\ifx\ZIED\disable{}\else\ifx\ZIED\enable{\@partner}\else{\@leader}\fi\fi}% |
---|
[114] | 69 | \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}\hline |
---|
| 70 | \Sirisa & \Slip & \Stima & \Subs & \Supmc & \Sxilinx & \Sbull & \Sthales & \Snavtel & \Szied \\\hline |
---|
| 71 | \@IRISA & \@LIP & \@TIMA & \@UBS & \@UPMC & \@XILINX & \@BULL & \@THALES & \@NAVTEL & \@ZIED \\\hline |
---|
[21] | 72 | \end{tabular}\par |
---|
| 73 | } |
---|
| 74 | |
---|
| 75 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 76 | \newenvironment{objectif}% |
---|
| 77 | {\begin{description}\item[Objectives]} |
---|
| 78 | {\end{description}} |
---|
| 79 | |
---|
| 80 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
[59] | 81 | \newcount\taskcnt\taskcnt=0 |
---|
[35] | 82 | \newcount\subtaskcnt |
---|
| 83 | \newcount\livrablecnt |
---|
[52] | 84 | \newenvironment{workpackage}% |
---|
[35] | 85 | {\global\advance\taskcnt1 |
---|
| 86 | \global\subtaskcnt0 |
---|
| 87 | \def\taskname{T\the\taskcnt}% |
---|
[21] | 88 | \begin{description}% |
---|
[123] | 89 | %\let\itemsave\item% |
---|
| 90 | \def\subtask{% |
---|
[35] | 91 | \global\advance\subtaskcnt1 |
---|
| 92 | \def\subtaskname{S\taskname-\the\subtaskcnt}% |
---|
[123] | 93 | \item[\subtaskname]}} |
---|
[21] | 94 | {\end{description}} |
---|
| 95 | |
---|
| 96 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
[52] | 97 | \def\writeganttinfo#1#2#3#4#5{{% |
---|
| 98 | \let\xcoach\relax |
---|
| 99 | \let\xcoachplus\relax |
---|
| 100 | \let\irisa\relax \let\Sirisa\relax |
---|
| 101 | \let\lip\relax \let\Slip\relax |
---|
| 102 | \let\tima\relax \let\Stima\relax |
---|
| 103 | \let\ubs\relax \let\Subs\relax |
---|
| 104 | \let\upmc\relax \let\Supmc\relax |
---|
| 105 | \let\altera\relax \let\Saltera\relax |
---|
| 106 | \let\xilinx\relax \let\Sxilinx\relax |
---|
| 107 | \let\bull\relax \let\Sbull\relax |
---|
| 108 | \let\thales\relax \let\Sthales\relax |
---|
| 109 | \let\zied\relax \let\Szied\relax |
---|
| 110 | \let\navtel\relax \let\Snavtel\relax |
---|
| 111 | \immediate\write\ganttdata{% |
---|
| 112 | T=\the\taskcnt\space S=\the\subtaskcnt\space% |
---|
| 113 | D=\the\livrablecnt\space V=\vers\space% |
---|
| 114 | BM=#1 EM=#2 R=#3 PART={#4} TITLE=#5% |
---|
| 115 | } |
---|
| 116 | }} |
---|
[21] | 117 | \newenvironment{livrable}% |
---|
| 118 | {% |
---|
[52] | 119 | \newcount\verscnt\verscnt=-1 |
---|
| 120 | \newif\ifIsLivrableStarted\IsLivrableStartedfalse |
---|
[49] | 121 | \newif\ifLivrableTopLine\LivrableTopLinetrue |
---|
| 122 | \def\livrableTableDef{\begin{tabular}{|c|c|c|c|p{.625\linewidth}|}\hline} |
---|
| 123 | \def\livrableTableLine##1##2##3##4{% |
---|
| 124 | \makebox[3.5em]{\begin{small}##1\end{small}} & |
---|
| 125 | \makebox[2.2em]{\begin{small}##2\end{small}} & |
---|
| 126 | \makebox[1.5em]{\begin{small}##3\end{small}} & |
---|
| 127 | \makebox[2.2em]{\begin{small}##4\end{small}} & |
---|
| 128 | } |
---|
| 129 | \def\livrableTableTopLine{% |
---|
| 130 | \livrableTableLine{number}{date}{type}{resp.} description |
---|
| 131 | } |
---|
[35] | 132 | \livrablecnt-1 |
---|
[123] | 133 | \ifvmode \else\par\fi |
---|
[52] | 134 | |
---|
| 135 | \def\itemV##1##2##3##4##5{% |
---|
| 136 | \ifIsLivrableStarted |
---|
| 137 | \global\advance\verscnt1 |
---|
| 138 | \else |
---|
| 139 | \global\advance\livrablecnt1 |
---|
| 140 | \global\verscnt1 |
---|
| 141 | \fi |
---|
| 142 | \def\vers{V\the\verscnt} |
---|
[35] | 143 | \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% |
---|
[52] | 144 | \writeganttinfo{##1}{##2}{none}{##4}{##5} |
---|
[21] | 145 | \\\hline |
---|
[49] | 146 | \ifLivrableTopLine |
---|
[52] | 147 | \ifIsLivrableStarted\else\hline\hline\fi |
---|
[49] | 148 | \else |
---|
[52] | 149 | \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi |
---|
[49] | 150 | \fi |
---|
| 151 | \global\LivrableTopLinefalse |
---|
[52] | 152 | \global\IsLivrableStartedtrue |
---|
| 153 | %\global\LivrableStartfalse |
---|
[49] | 154 | \livrableTableLine% |
---|
| 155 | {\textsc{\name}}% |
---|
[52] | 156 | {\textsc{T0+##2}}% |
---|
| 157 | {\textsc{##3}}% |
---|
[49] | 158 | {\textsc{##4}}% |
---|
[21] | 159 | } |
---|
[52] | 160 | \def\itemL##1##2##3##4##5##6{% |
---|
| 161 | \ifIsLivrableStarted |
---|
| 162 | %\global\advance\verscnt1 |
---|
| 163 | \else |
---|
| 164 | \global\advance\livrablecnt1 |
---|
| 165 | %\global\verscnt1 |
---|
| 166 | \fi |
---|
| 167 | \def\vers{VF} |
---|
| 168 | \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% |
---|
| 169 | \writeganttinfo{##1}{##2}{##6}{##4}{##5} |
---|
| 170 | \\\hline |
---|
| 171 | \ifLivrableTopLine |
---|
| 172 | \ifIsLivrableStarted\else\hline\hline\fi |
---|
| 173 | \else |
---|
| 174 | \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi |
---|
| 175 | \fi |
---|
| 176 | \global\LivrableTopLinefalse |
---|
| 177 | \global\IsLivrableStartedfalse |
---|
| 178 | %\global\LivrableStartfalse |
---|
| 179 | \livrableTableLine% |
---|
| 180 | {\textsc{\name}}% |
---|
| 181 | {\textsc{T0+##2}}% |
---|
| 182 | {\textsc{##3}}% |
---|
| 183 | {\textsc{##4}}% |
---|
| 184 | } |
---|
[75] | 185 | \def\CoutHorsD##1##2##3##4##5{% |
---|
| 186 | \let\xcoach\relax |
---|
| 187 | \let\xcoachplus\relax |
---|
| 188 | \let\irisa\relax \let\Sirisa\relax |
---|
| 189 | \let\lip\relax \let\Slip\relax |
---|
| 190 | \let\tima\relax \let\Stima\relax |
---|
| 191 | \let\ubs\relax \let\Subs\relax |
---|
| 192 | \let\upmc\relax \let\Supmc\relax |
---|
| 193 | \let\altera\relax \let\Saltera\relax |
---|
| 194 | \let\xilinx\relax \let\Sxilinx\relax |
---|
| 195 | \let\bull\relax \let\Sbull\relax |
---|
| 196 | \let\thales\relax \let\Sthales\relax |
---|
| 197 | \let\zied\relax \let\Szied\relax |
---|
| 198 | \let\navtel\relax \let\Snavtel\relax |
---|
| 199 | \immediate\write\ganttdata{% |
---|
| 200 | T=\the\taskcnt\space S=\the\subtaskcnt\space% |
---|
| 201 | D=none BM=##1 EM=##2 R=##5 PART={##3} TITLE=##4% |
---|
| 202 | } |
---|
| 203 | } |
---|
[21] | 204 | % \begin{small} |
---|
[49] | 205 | \livrableTableDef |
---|
| 206 | \livrableTableTopLine |
---|
| 207 | %\begin{tabular}{|c|c|c|c|p{.55\linewidth}|}\hline% |
---|
| 208 | %\makebox[3.5em]{number} & \makebox[1.5em]{date} & type & resp. & description |
---|
[21] | 209 | } |
---|
[49] | 210 | {\\\hline\end{tabular}\\% |
---|
[21] | 211 | %\end{small}\\% |
---|
| 212 | } |
---|
| 213 | |
---|
| 214 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
| 215 | \catcode`\@=12 |
---|
| 216 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|