--- loncom/xml/londefdef.pm 2003/08/20 15:22:03 1.162 +++ loncom/xml/londefdef.pm 2003/08/20 15:27:52 1.163 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.162 2003/08/20 15:22:03 sakharuk Exp $ +# $Id: londefdef.pm,v 1.163 2003/08/20 15:27:52 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -2318,7 +2318,6 @@ sub end_xmp { return $currentstring; } - #--
 sub start_pre {
     my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_;
@@ -3149,7 +3148,9 @@ sub start_var {
     my $currentstring = '';
     if ($target eq 'web') {
 	$currentstring = $token->[4];     
-    } 
+    } elsif ($target eq 'tex') {
+	$currentstring = '\textit{'; 
+    }
     return $currentstring;
 }
 
@@ -3157,12 +3158,14 @@ sub end_var {
     my ($target,$token) = @_;
     my $currentstring = '';
     if ($target eq 'web') {
-	$currentstring = $token->[2];    
+	$currentstring = $token->[2];
+    } elsif ($target eq 'tex') {
+	$currentstring = '}'; 
     } 
     return $currentstring;
 }
 
-#--  tag
+#--  tag (end tag forbidden)
 sub start_wbr {
     my ($target,$token) = @_;
     my $currentstring = '';