[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 03 Mar 2003 14:39:41 -0000
sakharuk Mon Mar 3 09:39:41 2003 EDT
Modified files:
/loncom/homework/caparesponse caparesponse.pm
Log:
Added printing of the statement - (in units ...) for the bubble type exam.
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.80 loncom/homework/caparesponse/caparesponse.pm:1.81
--- loncom/homework/caparesponse/caparesponse.pm:1.80 Thu Feb 27 17:20:40 2003
+++ loncom/homework/caparesponse/caparesponse.pm Mon Mar 3 09:39:41 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# caparesponse definition
#
-# $Id: caparesponse.pm,v 1.80 2003/02/27 22:20:40 albertel Exp $
+# $Id: caparesponse.pm,v 1.81 2003/03/03 14:39:41 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -178,6 +178,9 @@
if ($target eq 'web') {
$result="<br />The correct answer is ";
} elsif ($target eq 'tex') {
+ if (defined $unit and $Apache::lonhomework::type eq 'exam') {
+ $result.=' \textit{(in} \verb|'.$unit.'|\textit{)} ';
+ }
#$result='\vskip 0 mm The correct answer is \\texttt{';
}
for (my $i=0; $i <= $#answers; $i++) {