Legend:
- Unmodified
- Added
- Removed
-
anr/anr.sty
r150 r151 126 126 127 127 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 128 \def\writeganttinfo#1#2#3#4#5 {{%128 \def\writeganttinfo#1#2#3#4#5#6{{% 129 129 \let\xcoach\relax 130 130 \let\xcoachplus\relax … … 143 143 T=\the\taskcnt\space S=\the\subtaskcnt\space% 144 144 D=\the\livrablecnt\space V=\vers\space% 145 BM=#1 EM=#2 R=#3 PART={#4} TITLE=#5%145 BM=#1 EM=#2 R=#3 PART={#4} KIND={#5} TITLE=#6% 146 146 } 147 147 }} … … 173 173 \def\vers{V\the\verscnt} 174 174 \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% 175 \writeganttinfo{##1}{##2}{none}{##4}{## 5}175 \writeganttinfo{##1}{##2}{none}{##4}{##3}{##5} 176 176 \\\hline 177 177 \ifLivrableTopLine … … 198 198 \def\vers{VF} 199 199 \global\edef\name{D\the\taskcnt\the\subtaskcnt\the\livrablecnt-\vers}% 200 \writeganttinfo{##1}{##2}{##6}{##4}{## 5}200 \writeganttinfo{##1}{##2}{##6}{##4}{##3}{##5} 201 201 \\\hline 202 202 \ifLivrableTopLine -
anr/gantt.l
r147 r151 59 59 int tn,stn,dn,vn; // task, sub-task, number 60 60 char v; // 0, 1, 2, ..., F 61 char* kind; 61 62 char* title; 62 63 int bm,em; // mois de bebut et de fin … … 214 215 215 216 %% 216 int tn,stn,dn,v,bm,em; char* title; 217 int tn,stn,dn,v,bm,em; char* title; char* kind; 217 218 double an[3]; 218 219 char* an_comment; … … 236 237 int status = sscanf(yytext+2,"%lf:%lf:%lf:%s",an+0,an+1,an+2,tmp); 237 238 if (status<3) { 238 fprintf(stderr,"%s: is not resource definition, expected format \"N:N:N\" (near D%d%d%d-V%c)\n", 239 fprintf(stderr, 240 "%s: is not resource definition, expected format \"N:N:N\" (near D%d%d%d-V%c)\n", 239 241 yytext+2,tn,stn,dn,v); 240 242 an[0]=0; an[1]=0; an[2]=0; an_comment=0; … … 258 260 partner=0; 259 261 } 262 } 263 KIND="{"[^}]+"}" { 264 yytext[yyleng-1]=0; 265 kind= strdup(yytext+6); 266 if ( strcmp(kind,"x")!=0 && strcmp(kind,"d")!=0 && strcmp(kind,"h")!=0 && 267 strcmp(kind,"d+x")!=0 ) 268 fprintf(stderr,"ERROR:D%d%d%d invalid KIND: %s\n",tn,stn,dn,kind); 269 } 270 KIND="{}" { 271 yytext[yyleng-1]=0; 272 kind= strdup(yytext+6); 260 273 } 261 274 TITLE=.*\n { … … 276 289 p->bm = bm; 277 290 p->em = em; 291 p->kind = kind; 278 292 gen_titleLines(p); 279 293 … … 281 295 data_org.ls[tn][stn][dn][v] = p; 282 296 //fprintf(stderr,"ADDED: %d %d %d %d\n",tn,stn,dn,v); 297 tn=stn=dn=v=bm=em=0; 298 title=kind=0; 299 an[0]= an[1]=an[1]=0; 300 an_comment=0; 301 partner=0; 283 302 } 284 303 [ \t\n] ; … … 783 802 } 784 803 fprintf(curr->os,"\\begin{tabular}[t]{|l|c|c|c|p{\\desclen}|}\\hline\n"); 785 fprintf(curr->os,"number & resp. & T0+ & kd & description\\\\\\hline\\hline\n"); 804 fprintf(curr->os,"number"); 805 fprintf(curr->os," & resp."); 806 fprintf(curr->os," & \\makebox[2mm]{T0+}"); 807 fprintf(curr->os," & \\makebox[2mm]{kind}"); 808 fprintf(curr->os," & description\\\\\\hline\\hline\n"); 786 809 } 787 810 … … 809 832 gen_label_full(label,l); 810 833 sprintf(resp,"\\S%s",partner_table[l->partner].key); 811 sprintf(date," %d",l->em);812 sprintf(kind," %s","x");834 sprintf(date,"\\makebox[2mm][r]{%d}",l->em); 835 sprintf(kind,"\\makebox[1mm]{%s}",l->kind); 813 836 if ( top->nbvers == 1 ) 814 837 sprintf(desc,"%s \\\\\\hline\n",last->title); … … 824 847 fprintf(curr->os,"%-15s", label); 825 848 fprintf(curr->os," & %-10s", resp); 826 fprintf(curr->os," & %- 10s", date);827 fprintf(curr->os," & %- 8s", kind);849 fprintf(curr->os," & %-30s", date); 850 fprintf(curr->os," & %-30s", kind); 828 851 fprintf(curr->os," & %s", desc); 829 852 nblines -= 1;
Note: See TracChangeset
for help on using the changeset viewer.