#4945: [with patch, needs review] LaTeX for gp elements shouldn't use verbatim
environment
--------------------+-------------------------------------------------------
Reporter: malb | Owner: cwitty
Type: defect | Status: new
Priority: minor | Milestone: sage-3.4
Component: misc | Resolution:
Keywords: jsmath |
--------------------+-------------------------------------------------------
Changes (by jhpalmieri):
* summary: LaTeX for gp elements shouldn't use verbatim environment =>
[with patch, needs review] LaTeX for gp
elements shouldn't use verbatim environment
Comment:
| search_src("begin{verbatim}") returns 43 hits
Most of those are in docstrings, so we don't need to worry about them. I
think the only relevant instances are interfaces/expect.py, misc/latex.py,
misc/log.py. I don't understand how verbatim is used in the last two.
The attached patch seems to fix the problem in the first one:
{{{latex(gp(2+2))}}} works in the notebook now.
(The solution here is to change verbatim to verb -- search misc/all.py for
'verbatim' to see very similar code) and then to use the jsMath 'verb'
extension.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4945#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---