#6954: [with patch, needs work] latex output for dictionaries
----------------------------+-----------------------------------------------
Reporter: whuss | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.2
Component: user interface | Keywords: latex
Reviewer: | Author: whuss
Merged: |
----------------------------+-----------------------------------------------
Comment(by jhpalmieri):
Two comments: first, this doesn't pass doctests, due to ordering issues in
dictionaries:
{{{
**********************************************************************
File "/Applications/sage/devel/sage/sage/misc/latex.py", line 257:
sage: latex(d)
Expected:
\left\{2\rightarrow x + \sin\left(y^{2}\right), z\rightarrow \left[1,
2, x^{2}\right], y\rightarrow 2, x\rightarrow \frac{1}{2} \, y\right\}
Got:
\left\{2\rightarrow x + \sin\left(y^{2}\right), x\rightarrow
\frac{1}{2} \, y, y\rightarrow 2, z\rightarrow \left[1, 2,
x^{2}\right]\right\}
}}}
This is on a Mac, OS X 10.5, 32-bit. Doctests pass on 64-bit OS X. Maybe
there should be different doctests depending on 32-bit vs. 64-bit, as in
the {{{__hash__}}} method in
{{{sage/rings/padics/padic_capped_relative_element.pyx}}}. (Or maybe it's
not a 32/64-bit issue; maybe the doctest should just be modified so order
doesn't matter.)
Second, I think I would prefer a colon rather than an arrow: I think the
typeset version should mimic the string representation, just as we do for
lists and tuples. (I don't feel that strongly about this.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6954#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---