--- loncom/xml/lontexconvert.pm 2005/02/25 05:54:01 1.59 +++ loncom/xml/lontexconvert.pm 2005/02/27 17:28:56 1.61 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.59 2005/02/25 05:54:01 albertel Exp $ +# $Id: lontexconvert.pm,v 1.61 2005/02/27 17:28:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -149,10 +149,8 @@ sub jsMath_converted { #has a $$ in it, guessinng it's display mode $tag='div'; } - &Apache::lonnet::logthis($$texstring); $$texstring=~s/(?!\\)\$//g; - $$texstring=~s/\\ensuremath//g - &Apache::lonnet::logthis($$texstring); + $$texstring=~s/\\ensuremath//g; return '<'.$tag.' class="math">'.$$texstring.''; } @@ -253,6 +251,7 @@ sub algebra { if ($style eq 'display') { $latex='$$'.$latex.'$$x'; } else { + # style is 'inline' $latex='\\ensuremath{'.$latex.'}'; } if ($target eq 'web' || $target eq 'analyze') { @@ -304,7 +303,6 @@ sub postprocess_algebra { # $string =~s/\\lim\\left\((.+?),(.+?),(.+?)\\right\)/\\lim_{$2\\to $3}$1/gs; - &Apache::lonnet::logthis($string); return $string; } 1;