[LON-CAPA-cvs] cvs: loncom /homework matchresponse.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 20 Mar 2003 18:26:34 -0000


sakharuk		Thu Mar 20 13:26:34 2003 EDT

  Modified files:              
    /loncom/homework	matchresponse.pm 
  Log:
  Math expressions in the choice-table converted from line math mode to embedded math mode. It is neccessary because LaTeX does not allow to use line math mode inside of the table environment.
  
  
Index: loncom/homework/matchresponse.pm
diff -u loncom/homework/matchresponse.pm:1.10 loncom/homework/matchresponse.pm:1.11
--- loncom/homework/matchresponse.pm:1.10	Thu Mar 20 13:06:07 2003
+++ loncom/homework/matchresponse.pm	Thu Mar 20 13:26:34 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Full matching style response
 #
-# $Id: matchresponse.pm,v 1.10 2003/03/20 18:06:07 sakharuk Exp $
+# $Id: matchresponse.pm,v 1.11 2003/03/20 18:26:34 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -148,6 +148,7 @@
 	my $table=' \\\\\\\\ \begin{tabular}{ll} ';
 	my $i=0;
 	foreach my $name (@names) {
+	    $Apache::response::itemgroup{$name.'.text'}=~s/\$\$/\$/g;
 	    $table.=' '.$alphabet[$i].' & '.
 		$Apache::response::itemgroup{$name.'.text'}.
 		    ' \\\\ ';