[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonsyllabus.pm

raeburn raeburn at source.lon-capa.org
Fri Aug 5 16:56:42 EDT 2016


raeburn		Fri Aug  5 20:56:42 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonsyllabus.pm 
  Log:
  - For 2.11
    - Backport 1.140
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.138 loncom/interface/lonsyllabus.pm:1.138.2.1
--- loncom/interface/lonsyllabus.pm:1.138	Tue Jun  9 21:22:57 2015
+++ loncom/interface/lonsyllabus.pm	Fri Aug  5 20:56:42 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.138 2015/06/09 21:22:57 damieng Exp $
+# $Id: lonsyllabus.pm,v 1.138.2.1 2016/08/05 20:56:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -125,8 +125,13 @@
                     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'}) {




More information about the LON-CAPA-cvs mailing list