--- loncom/interface/lonsyllabus.pm 2016/08/05 20:56:42 1.138.2.1 +++ loncom/interface/lonsyllabus.pm 2016/01/26 14:30:25 1.139 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.138.2.1 2016/08/05 20:56:42 raeburn Exp $ +# $Id: lonsyllabus.pm,v 1.139 2016/01/26 14:30:25 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -125,13 +125,8 @@ sub handler { if ($target eq 'tex') { $r->print($filecontents); } else { - 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 $result = &Apache::lontexconvert::converted(\$filecontents, + $env{'form.texengine'}); my %args; &get_breadcrumbs($cdom,$cnum,$crstype,\%args); if ($env{'form.only_body'}) { @@ -169,7 +164,7 @@ sub handler { '\end{document}'); } else { $r->print(&Apache::lonwrapper::wrapper($item,undef,$env{'request.use_absolute'}, - undef,$is_pdf,&mt('Syllabus'))); + undef,$is_pdf,undef,&mt('Syllabus'))); } } return OK; @@ -188,7 +183,7 @@ sub handler { $is_pdf = 1; } $r->print(&Apache::lonwrapper::wrapper($external,undef,$env{'request.use_absolute'}, - $is_ext,$is_pdf,&mt('Syllabus'))); + $is_ext,$is_pdf,undef,&mt('Syllabus'))); } return OK; }