[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /xml lontexconvert.pm

raeburn raeburn at source.lon-capa.org
Fri Aug 5 17:24:01 EDT 2016


raeburn		Fri Aug  5 21:24:01 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/xml	lontexconvert.pm 
  Log:
  - For 2.11
    - Backport 1.119
  
  
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.112.2.5 loncom/xml/lontexconvert.pm:1.112.2.6
--- loncom/xml/lontexconvert.pm:1.112.2.5	Fri Aug  5 21:04:25 2016
+++ loncom/xml/lontexconvert.pm	Fri Aug  5 21:24:01 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # TeX Conversion Module
 #
-# $Id: lontexconvert.pm,v 1.112.2.5 2016/08/05 21:04:25 raeburn Exp $
+# $Id: lontexconvert.pm,v 1.112.2.6 2016/08/05 21:24:01 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -388,7 +388,7 @@
     if ($mode =~ /tth/i) {
 	return &tth_converted($string);
     } elsif ($mode =~ /jsmath/i) {
-	return &jMathJax_converted($string);
+	return &MathJax_converted($string);
     } elsif ($mode =~ /mathjax/i) {
         return &MathJax_converted($string);
     } elsif ($mode =~ /mimetex/i) {
@@ -537,7 +537,7 @@
     # $string =~s/\\fun/ /g;
 
     # sqrt(3,4) means the 4 root of 3
-    $string =~s/\\sqrt{([^,]+),([^\}]+)}/\\sqrt[$2]{$1}/gs;
+    $string =~s/\\sqrt\{([^,]+),([^\}]+)}/\\sqrt[$2]{$1}/gs;
 
     # log(3,4) means the log base 4 of 3
     $string =~s/\\log\\left\((.+?),(.+?)\\right\)/\\log_{$2}\\left($1\\right)/gs;
@@ -603,7 +603,6 @@
 
 =item tex_engine()
 
-
 =item init_math_support()
 
 =item mimetex_valign()




More information about the LON-CAPA-cvs mailing list