Changeset 52 for anr/anr.sty
- Timestamp:
- Jan 31, 2010, 10:17:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anr/anr.sty
r49 r52 84 84 \newcount\subtaskcnt 85 85 \newcount\livrablecnt 86 \newenvironment{workpackage} [1]%86 \newenvironment{workpackage}% 87 87 {\global\advance\taskcnt1 88 88 \global\subtaskcnt0 … … 97 97 98 98 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 99 \def\writeganttinfo#1#2#3#4#5{{% 100 \let\xcoach\relax 101 \let\xcoachplus\relax 102 \let\irisa\relax \let\Sirisa\relax 103 \let\lip\relax \let\Slip\relax 104 \let\tima\relax \let\Stima\relax 105 \let\ubs\relax \let\Subs\relax 106 \let\upmc\relax \let\Supmc\relax 107 \let\altera\relax \let\Saltera\relax 108 \let\xilinx\relax \let\Sxilinx\relax 109 \let\bull\relax \let\Sbull\relax 110 \let\thales\relax \let\Sthales\relax 111 \let\zied\relax \let\Szied\relax 112 \let\navtel\relax \let\Snavtel\relax 113 \immediate\write\ganttdata{% 114 T=\the\taskcnt\space S=\the\subtaskcnt\space% 115 D=\the\livrablecnt\space V=\vers\space% 116 BM=#1 EM=#2 R=#3 PART={#4} TITLE=#5% 117 } 118 }} 99 119 \newenvironment{livrable}% 100 120 {% 121 \newcount\verscnt\verscnt=-1 122 \newif\ifIsLivrableStarted\IsLivrableStartedfalse 101 123 \newif\ifLivrableTopLine\LivrableTopLinetrue 102 \newif\ifLivrableStart\LivrableStarttrue103 124 \def\livrableTableDef{\begin{tabular}{|c|c|c|c|p{.625\linewidth}|}\hline} 104 125 \def\livrableTableLine##1##2##3##4{% … … 113 134 \livrablecnt-1 114 135 \ifvmode\else\vspace{.75ex}\\\fi 115 \def\item##1##2##3##4##5##6{% 116 \def\tmpa{##1}\def\vers{} 117 \def\tmp{} \ifx\tmp\tmpa\global\advance\livrablecnt1\def\vers{VF}\global\LivrableStarttrue\fi% 118 \def\tmp{1} \ifx\tmp\tmpa\global\advance\livrablecnt1\def\vers{V1}\global\LivrableStarttrue\fi% 119 \def\tmp{V1}\ifx\tmp\tmpa\global\advance\livrablecnt1\def\vers{V1}\global\LivrableStarttrue\fi% 120 \def\tmp{2} \ifx\tmp\tmpa\def\vers{V2}\fi% 121 \def\tmp{V2}\ifx\tmp\tmpa\def\vers{V2}\fi% 122 \def\tmp{3} \ifx\tmp\tmpa\def\vers{V3}\fi% 123 \def\tmp{V3}\ifx\tmp\tmpa\def\vers{V3}\fi% 124 \def\tmp{F} \ifx\tmp\tmpa\def\vers{VF}\fi% 125 \def\tmp{VF}\ifx\tmp\tmpa\def\vers{VF}\fi% 126 %\gdef\name{D-\the\taskcnt\the\subtaskcnt\the\livrablecnt-##1}% 136 137 \def\itemV##1##2##3##4##5{% 138 \ifIsLivrableStarted 139 \global\advance\verscnt1 140 \else 141 \global\advance\livrablecnt1 142 \global\verscnt1 143 \fi 144 \def\vers{V\the\verscnt} 127 145 \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% 128 { 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\relaxe \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=##1 BM=##2 EM=##3 TITLE=##6% 145 } 146 } 146 \writeganttinfo{##1}{##2}{none}{##4}{##5} 147 147 \\\hline 148 148 \ifLivrableTopLine 149 \if LivrableStart\hline\hline\fi149 \ifIsLivrableStarted\else\hline\hline\fi 150 150 \else 151 \if LivrableStart\end{tabular}\\\livrableTableDef\fi151 \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi 152 152 \fi 153 153 \global\LivrableTopLinefalse 154 \global\LivrableStartfalse 154 \global\IsLivrableStartedtrue 155 %\global\LivrableStartfalse 155 156 \livrableTableLine% 156 157 {\textsc{\name}}% 157 {\textsc{T0+##3}}% 158 {\textsc{T0+##2}}% 159 {\textsc{##3}}% 158 160 {\textsc{##4}}% 159 {\textsc{##5}}% 161 } 162 \def\itemL##1##2##3##4##5##6{% 163 \ifIsLivrableStarted 164 %\global\advance\verscnt1 165 \else 166 \global\advance\livrablecnt1 167 %\global\verscnt1 168 \fi 169 \def\vers{VF} 170 \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% 171 \writeganttinfo{##1}{##2}{##6}{##4}{##5} 172 \\\hline 173 \ifLivrableTopLine 174 \ifIsLivrableStarted\else\hline\hline\fi 175 \else 176 \ifIsLivrableStarted\else\end{tabular}\\\livrableTableDef\fi 177 \fi 178 \global\LivrableTopLinefalse 179 \global\IsLivrableStartedfalse 180 %\global\LivrableStartfalse 181 \livrableTableLine% 182 {\textsc{\name}}% 183 {\textsc{T0+##2}}% 184 {\textsc{##3}}% 185 {\textsc{##4}}% 160 186 } 161 187 % \begin{small}
Note: See TracChangeset
for help on using the changeset viewer.