Changeset 35 for anr/anr.sty
- Timestamp:
- Jan 15, 2010, 2:33:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anr/anr.sty
r27 r35 4 4 5 5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 6 \newwrite\ganttdata 7 \immediate\openout\ganttdata=anr.gantt 8 6 9 \def\enable{enable} 7 10 \def\disable{disable} … … 60 63 61 64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 65 \newcount\taskcnt\taskcnt=-1 66 \newcount\subtaskcnt 67 \newcount\livrablecnt 62 68 \newenvironment{workpackage}[1]% 63 {\newcount\wpcnt\wpcnt=0% 64 \def\taskname{#1}% 69 {\global\advance\taskcnt1 70 \global\subtaskcnt0 71 \def\taskname{T\the\taskcnt}% 65 72 \begin{description}% 66 73 \let\itemsave\item% 67 74 \def\item{% 68 \ advance\wpcnt169 \def\ wpname{\taskname-\the\wpcnt}%70 \itemsave[\ wpname]}}75 \global\advance\subtaskcnt1 76 \def\subtaskname{S\taskname-\the\subtaskcnt}% 77 \itemsave[\subtaskname]}} 71 78 {\end{description}} 72 79 … … 74 81 \newenvironment{livrable}% 75 82 {% 83 \livrablecnt-1 76 84 \ifvmode\else\\\fi 77 85 \def\item##1##2##3##4##5##6{% 78 \gdef\name{\wpname##1}% 86 \def\tmpa{##1}\def\vers{} 87 \def\tmp{} \ifx\tmp\tmpa\global\advance\livrablecnt1\def\vers{VF}\fi% 88 \def\tmp{1} \ifx\tmp\tmpa\global\advance\livrablecnt1\def\vers{V1}\fi% 89 \def\tmp{V1}\ifx\tmp\tmpa\global\advance\livrablecnt1\def\vers{V1}\fi% 90 \def\tmp{2} \ifx\tmp\tmpa\def\vers{V2}\fi% 91 \def\tmp{V2}\ifx\tmp\tmpa\def\vers{V2}\fi% 92 \def\tmp{3} \ifx\tmp\tmpa\def\vers{V3}\fi% 93 \def\tmp{V3}\ifx\tmp\tmpa\def\vers{V3}\fi% 94 \def\tmp{F} \ifx\tmp\tmpa\def\vers{VF}\fi% 95 \def\tmp{VF}\ifx\tmp\tmpa\def\vers{VF}\fi% 96 %\gdef\name{D-\the\taskcnt\the\subtaskcnt\the\livrablecnt-##1}% 97 \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% 98 { 99 \let\xcoach\relax 100 \let\xilinx\relax 101 \let\altera\relax 102 \immediate\write\ganttdata{% 103 T=\the\taskcnt\space S=\the\subtaskcnt\space% 104 DV=\the\livrablecnt\space BM=##2 EM=##3 TITLE=##6% 105 } 106 } 79 107 \\\hline 80 108 \begin{small}\textsc{\name}\end{small} &
Note: See TracChangeset
for help on using the changeset viewer.