Changeset 35 for anr/anr.sty


Ignore:
Timestamp:
Jan 15, 2010, 2:33:20 PM (15 years ago)
Author:
coach
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anr/anr.sty

    r27 r35  
    44
    55%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     6\newwrite\ganttdata
     7\immediate\openout\ganttdata=anr.gantt
     8
    69\def\enable{enable}
    710\def\disable{disable}
     
    6063
    6164%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     65\newcount\taskcnt\taskcnt=-1
     66\newcount\subtaskcnt
     67\newcount\livrablecnt
    6268\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}%
    6572 \begin{description}%
    6673 \let\itemsave\item%
    6774 \def\item{%
    68     \advance\wpcnt1
    69     \def\wpname{\taskname-\the\wpcnt}%
    70     \itemsave[\wpname]}}
     75    \global\advance\subtaskcnt1
     76    \def\subtaskname{S\taskname-\the\subtaskcnt}%
     77    \itemsave[\subtaskname]}}
    7178{\end{description}}
    7279
     
    7481\newenvironment{livrable}%
    7582{%
     83 \livrablecnt-1
    7684 \ifvmode\else\\\fi
    7785 \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    }
    79107    \\\hline
    80108    \begin{small}\textsc{\name}\end{small} &
Note: See TracChangeset for help on using the changeset viewer.