[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Fri, 12 Mar 2004 15:21:49 -0000
sakharuk Fri Mar 12 10:21:49 2004 EDT
Modified files:
/loncom/xml londefdef.pm
Log:
Bug 2411 (<sub><m></m></sub> doesn't work) is fixed. \ensuremath{} is implemented which allows to use nested math environments in subscripts and supersscripts.
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.201 loncom/xml/londefdef.pm:1.202
--- loncom/xml/londefdef.pm:1.201 Tue Mar 9 15:37:58 2004
+++ loncom/xml/londefdef.pm Fri Mar 12 10:21:49 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Tags Default Definition Module
#
-# $Id: londefdef.pm,v 1.201 2004/03/09 20:37:58 albertel Exp $
+# $Id: londefdef.pm,v 1.202 2004/03/12 15:21:49 sakharuk Exp $
#
#
# Copyright Michigan State University Board of Trustees
@@ -1338,7 +1338,7 @@
if ($target eq 'web') {
$currentstring .= $token->[4];
} elsif ($target eq 'tex') {
- $currentstring .= "\$_{";
+ $currentstring .= '\ensuremath{_{';
}
return $currentstring;
}
@@ -1349,7 +1349,7 @@
if ($target eq 'web') {
$currentstring .= $token->[2];
} elsif ($target eq 'tex') {
- $currentstring .= "}\$";
+ $currentstring .= '}}';
}
return $currentstring;
}
@@ -1361,7 +1361,7 @@
if ($target eq 'web') {
$currentstring .= $token->[4];
} elsif ($target eq 'tex') {
- $currentstring .= "\$^{";
+ $currentstring .= '\ensuremath{^{';
}
return $currentstring;
}
@@ -1372,7 +1372,7 @@
if ($target eq 'web') {
$currentstring .= $token->[2];
} elsif ($target eq 'tex') {
- $currentstring .= "}\$";
+ $currentstring .= '}}';
}
return $currentstring;
}