--- capa/capa51/pProj/qzparse.c 1999/09/28 21:26:20 1.1.1.1 +++ capa/capa51/pProj/qzparse.c 1999/10/14 19:01:38 1.2 @@ -49,26 +49,28 @@ print_header(int mode,FILE *o_fp,int sec extern char *StartText_p; int capaid = capa_PIN(stu_num,set,0); - switch(mode) { - case TeX_MODE: - fprintf(o_fp, "Section %d {\\Large %s}\\hspace*{1in}",sec,stu_nam); - fprintf(o_fp, "{\\large %s}, CAPAID: %d, set %d",stu_num, capaid, set); - fprintf(o_fp, "\n\\begin{enumerate}\n"); - break; - case ASCII_MODE: - fprintf(o_fp, "Section %d %s ", sec,stu_nam); - fprintf(o_fp, "%s, CAPAID: %d set %d\n\n",stu_num, capaid, set); - break; - case HTML_MODE: - fprintf(o_fp, "

Section %d %s, ", sec,stu_nam); - fprintf(o_fp, "%s, CAPAID:%d set %d

\n", stu_num,capaid,set); - fprintf(o_fp, "
    \n"); - break; - } if( StartText_p != NULL ) { fprintf(o_fp, "%s", StartText_p); } + switch(mode) { + case TeX_MODE: + if (StartText_p == NULL ) { + fprintf(o_fp, "Section %d {\\Large %s}\\hspace*{1in}",sec,stu_nam); + fprintf(o_fp, "{\\large %s}, CAPAID: %d, set %d",stu_num, capaid, set); + } + fprintf(o_fp, "\n\\begin{enumerate}\n"); + break; + case ASCII_MODE: + fprintf(o_fp, "Section %d %s ", sec,stu_nam); + fprintf(o_fp, "%s, CAPAID: %d set %d\n\n",stu_num, capaid, set); + break; + case HTML_MODE: + fprintf(o_fp, "

    Section %d %s, ", sec,stu_nam); + fprintf(o_fp, "%s, CAPAID:%d set %d

    \n", stu_num,capaid,set); + fprintf(o_fp, "
      \n"); + break; + } } void