--- loncom/xml/lontexconvert.pm 2002/07/29 22:06:38 1.6 +++ loncom/xml/lontexconvert.pm 2002/09/16 19:29:06 1.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.6 2002/07/29 22:06:38 www Exp $ +# $Id: lontexconvert.pm,v 1.8 2002/09/16 19:29:06 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -103,12 +103,15 @@ sub msgtexconverted { my $message=shift; if ($ENV{'browser.mathml'}) { &tth::ttminit(); + &tth::ttmoptions("-L"); } else { &tth::tthinit(); + &tth::tthoptions("-L"); } - $message=~s/(\$[^\$]+\$)/&converted(\$1)/ge; - $message=~s/(\\\[[^\]]+\])/&converted(\$1)/ge; - return $message; + $message=~s/(\$\$.+?\$\$)/&converted(\$1)/ge; + $message=~s/(\$.+?\$)/&converted(\$1)/ge; + $message=~s/(\\\[.+?\\\])/&converted(\$1)/ge; + return $message.$errorstring; } 1;