--- loncom/xml/lontexconvert.pm 2010/01/26 01:16:30 1.101 +++ loncom/xml/lontexconvert.pm 2010/04/26 21:36:50 1.102 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.101 2010/01/26 01:16:30 faziophi Exp $ +# $Id: lontexconvert.pm,v 1.102 2010/04/26 21:36:50 faziophi Exp $ # # Copyright Michigan State University Board of Trustees # @@ -326,6 +326,7 @@ sub converted { sub to_convert { my ($string) = @_; + &init_tth(); $string=~s/\/ /gs; # $string=~s/\s/ /gs; $string=&HTML::Entities::decode($string); @@ -373,7 +374,6 @@ sub smiley { sub msgtexconverted { my ($message,$email) = @_; $errorstring=''; - &init_tth(); my $outmessage=''; my $tex=0; foreach my $fragment (split(/(?:\<\;|\<)\/*m\s*(?:\>\;|\>)/i,$message)) { @@ -415,7 +415,7 @@ sub msgtexconverted { sub algebra { use AlgParser; - + &init_tth(); my ($string,$target,$style,$parstack,$safeeval)=@_; my $parser = new AlgParserWithImplicitExpand; $string=&prepare_algebra($string);