--- loncom/xml/lontexconvert.pm 2019/02/15 17:52:54 1.112.2.8 +++ loncom/xml/lontexconvert.pm 2019/02/15 20:56:22 1.122 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # TeX Conversion Module # -# $Id: lontexconvert.pm,v 1.112.2.8 2019/02/15 17:52:54 raeburn Exp $ +# $Id: lontexconvert.pm,v 1.122 2019/02/15 20:56:22 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -178,6 +178,7 @@ sub convert_real { $xmlstring=~s/^\s*\
'."\n"; } + #sub MathJax_process { + # my $state = pop(@MathJax_sent_header); + # return '' if !$state; + # return "\n". + # ''."\n"; + #} + #sub MathJax_state { + # my ($level) = @_; + # return $MathJax_sent_header[$level]; + #} } sub tex_engine { @@ -333,7 +344,7 @@ sub tex_engine { if ($domdefaults{'texengine'} ne '') { return $domdefaults{'texengine'}; } - return 'tth'; + return $Apache::lonnet::deftex; } sub init_math_support { @@ -401,9 +412,9 @@ sub converted { if ($mode =~ /tth/i) { return &tth_converted($string); } elsif ($mode =~ /jsmath/i) { - return &MathJax_converted($string); - } elsif ($mode =~ /mathjax/i) { return &MathJax_converted($string); + } elsif ($mode =~ /mathjax/i) { + return &MathJax_converted($string); } elsif ($mode =~ /mimetex/i) { return &mimetex_converted($string); } elsif ($mode =~ /raw/i) {