#9774: Use MathJax instead of jsMath
-----------------------------------------------------------------------------------------+
Reporter: mpatel
| Owner: jason, was
Type: enhancement
| Status: closed
Priority: major
| Milestone: sage-5.4
Component: notebook
| Resolution: fixed
Keywords: sd41
| Work issues:
Report Upstream: Fixed upstream, but not in a stable release.
| Reviewers: Jason Grout, John Palmieri, Punarbasu Purkayastha,
Keshav Kini
Authors: Rob Beezer, Davide Cervone, John Palmieri, Jason Grout,
Nathan Carter | Merged in: sage-5.4.beta0
Dependencies: #13121
| Stopgaps:
-----------------------------------------------------------------------------------------+
Comment (by novoselt):
This document does not compile anymore with SageTeX
{{{
\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{sagetex}
\begin{document}
$\sage{"1 2"}$
\end{document}
}}}
because someone has replaced a verbatim spacer with a version that does
not work, as was explicitly explained in the surrounding comment, and then
deleted the comment altogether:
{{{
#!diff
--- a/sage/misc/latex.py
+++ b/sage/misc/latex.py
@@ -323,11 +323,7 @@
# 2) wrap each line into \verb;
# 3) assemble lines into a left-justified array.
- # There is a bug in verb-space treatment in jsMath...
- spacer = "\\phantom{%s}"
- # \phantom{\verb!%s!} is more accurate and it works, but it is not a
valid
- # LaTeX and may cause problems, so let's live with the above variant
until
- # spaces are properly treated in jsMath/MathJax and we don't need to
worry.
+ spacer = r"\phantom{\verb!%s!}"
lines = []
for line in x.split("\n"):
parts = []
}}}
What was the motivation for this???
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9774#comment:116>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.