[sagenb] 24/157: make \color in MathJax behave similar to \color in LaTeX

felix salfelder felix-guest at moszumanska.debian.org
Mon Dec 22 16:51:45 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit ac480ce43554f0334c26dcb8bd5538541a5b3efd
Author: Punarbasu Purkayastha <ppurka at gmail.com>
Date:   Thu May 8 17:20:48 2014 +0800

    make \color in MathJax behave similar to \color in LaTeX
---
 sagenb/data/sage/js/mathjax_sage.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sagenb/data/sage/js/mathjax_sage.js b/sagenb/data/sage/js/mathjax_sage.js
index c55fcb4..fd77c99 100644
--- a/sagenb/data/sage/js/mathjax_sage.js
+++ b/sagenb/data/sage/js/mathjax_sage.js
@@ -28,7 +28,10 @@ MathJax.Hub.Config({
     TeX: {
 	Macros: {
 	    {{ theme_mathjax_macros|join(',\n') }}
-	}
+	},
+    // the following makes \color in MathJax compatible with the \color
+    // command from LaTeX
+    extensions: ["color.js"]
     },
 
 });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list