--- loncom/xml/lontexconvert.pm 2001/11/29 19:03:58 1.4
+++ loncom/xml/lontexconvert.pm 2002/10/28 20:40:25 1.12
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.4 2001/11/29 19:03:58 www Exp $
+# $Id: lontexconvert.pm,v 1.12 2002/10/28 20:40:25 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -61,25 +61,30 @@ sub header {
return &Apache::lonxml::xmlbegin().
&Apache::lonxml::fontsettings().
"\n
\n".
- &Apache::lonxml::registerurl().
+ &Apache::lonxml::registerurl(undef,'tex').
"\n\n";
}
# ================================================================== Conversion
sub converted {
- my $texstring=shift;
- my $xmlstring;
+ my $texstring=shift;
+ my $xmlstring='[UNDISPLAYABLE]';
+ eval(<<'ENDCONV');
+ {
+ local $SIG{SEGV}=sub { die; };
if ($ENV{'browser.mathml'}) {
$xmlstring=&tth::ttm($$texstring);
$xmlstring=~s/\