Diff for /loncom/homework/matchresponse.pm between versions 1.21 and 1.22

version 1.21, 2003/08/19 15:24:52 version 1.22, 2003/09/15 18:13:52
Line 144  sub end_itemgroup { Line 144  sub end_itemgroup {
  $table.='</table>';   $table.='</table>';
  $Apache::matchresponse::itemtable{'display'}=$table;   $Apache::matchresponse::itemtable{'display'}=$table;
     } elsif ($target eq 'tex') {      } elsif ($target eq 'tex') {
  my $table=' \\\\\\\\ \begin{description} ';   my $table=' \begin{description} ';
  my $i=0;   my $i=0;
  foreach my $name (@names) {   foreach my $name (@names) {
     $Apache::response::itemgroup{$name.'.text'}=~s/\$\$/\$/g;      $Apache::response::itemgroup{$name.'.text'}=~s/\$\$/\$/g;
Line 152  sub end_itemgroup { Line 152  sub end_itemgroup {
  $Apache::response::itemgroup{$name.'.text'};   $Apache::response::itemgroup{$name.'.text'};
     $i++;      $i++;
  }   }
  $table.=' \end{description} \strut \\\\ ';   $table.=' \end{description} \strut ';
  $Apache::matchresponse::itemtable{'display'}=$table;   $Apache::matchresponse::itemtable{'display'}=$table;
     }      }
     return $result;      return $result;
Line 432  sub displayfoils { Line 432  sub displayfoils {
     $question.='\vskip -2 mm\parbox{\textwidth}{\begin{enumerate}\item[\textbf{'.$internal_counter.'}.]\parbox{\textwidth - 5 mm}{'.&Apache::optionresponse::bubbles(\@used_letters,\@emptyItems).'}\end{enumerate}} \vskip -10 mm \strut ';      $question.='\vskip -2 mm\parbox{\textwidth}{\begin{enumerate}\item[\textbf{'.$internal_counter.'}.]\parbox{\textwidth - 5 mm}{'.&Apache::optionresponse::bubbles(\@used_letters,\@emptyItems).'}\end{enumerate}} \vskip -10 mm \strut ';
     $internal_counter++;      $internal_counter++;
         } else {          } else {
     $question.=' \\\\ '.$optionlist.$text."\n";      $question.=' '.$optionlist.$text.'\strut\\\\\strut '."\n";
  }   }
             }               } 
     $temp++;      $temp++;

Removed from v.1.21  
changed lines
  Added in v.1.22


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>