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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 28 Aug 2002 14:22:15 -0000


sakharuk		Wed Aug 28 10:22:15 2002 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  Added LaTeX verbatim environment to print what computer got in the same way
  as it was seen om the screen.
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.54 loncom/homework/caparesponse/caparesponse.pm:1.55
--- loncom/homework/caparesponse/caparesponse.pm:1.54	Mon Aug 26 22:25:11 2002
+++ loncom/homework/caparesponse/caparesponse.pm	Wed Aug 28 10:22:15 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.54 2002/08/27 02:25:11 albertel Exp $
+# $Id: caparesponse.pm,v 1.55 2002/08/28 14:22:15 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -169,7 +169,7 @@
       if ($target eq 'web') {
 	  $result="<br />The computer got ";
       } elsif ($target eq 'tex') {
-	  $result='\vskip 0 mm The computer got ';
+	  $result='\vskip 0 mm The computer got \verb|';
       }
       for (my $i=0; $i <= $#answers; $i++) {
 	my $answer=$answers[$i];
@@ -191,7 +191,7 @@
       if ($target eq 'web') {
 	$result.=" $unit.<br></br>";
       } elsif ($target eq 'tex') {
-	$result.="\$ $unit \$.\\vskip 0 mm ";
+	  $result.=" $unit.| \\vskip 0 mm ";
       }
     }
   } elsif ($target eq 'edit') {