--- loncom/interface/lonsyllabus.pm 2016/01/26 14:30:25 1.139 +++ loncom/interface/lonsyllabus.pm 2016/02/20 00:12:40 1.140 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.139 2016/01/26 14:30:25 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.140 2016/02/20 00:12:40 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -125,8 +125,13 @@ sub handler { if ($target eq 'tex') { $r->print($filecontents); } else { - my $result = &Apache::lontexconvert::converted(\$filecontents, - $env{'form.texengine'}); + my $texengine = $env{'form.texengine'}; + if ($texengine eq '') { + $texengine = 'tth'; + } elsif (lc($texengine) eq 'jsmath') { + $texengine = 'MathJax'; + } + my $result = &Apache::lontexconvert::converted(\$filecontents,$texengine); my %args; &get_breadcrumbs($cdom,$cnum,$crstype,\%args); if ($env{'form.only_body'}) {