#14256: Nicer latex output for strings using \text
------------------------------+---------------------------------------------
Reporter: nthiery | Owner: was
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.9
Component: user interface | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors:
Merged in: | Dependencies:
Stopgaps: |
------------------------------+---------------------------------------------
The current latex output for simple strings is a bit overkill:
{{{
sage: latex("hello world")
\verb|hello|\phantom{\verb!x!}\verb|world|
}}}
There is a rationale behind it: namely this allows for a nicer rendering
of multi-line ascii art by emulating a fixed-width font. However, for a
simple one line string, the following would be more readable:
{{{
sage: latex("hello world")
\text{hello world}
}}}
The attached preliminary patch does this. However more work would need to
be done, as this requires changing quite a few doctests. In fact some code
seem to assume that the output use {{{\verb}}} before stripping this away,
so maybe some cleanup is in order there.
I for myself won't work any further on this patch; feel free to take over!
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14256>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.