#11498: Improve LaTeXing of strings
-----------------------------+----------------------------------------------
Reporter: novoselt | Owner: jason, mpatel, was
Type: enhancement | Status: positive_review
Priority: major | Milestone: sage-4.7.1
Component: notebook | Keywords: sd31
Work_issues: | Upstream: N/A
Reviewer: John Palmieri | Author: Andrey Novoseltsev
Merged: | Dependencies:
-----------------------------+----------------------------------------------
Description changed by novoselt:
Old description:
> See the attached PDF for an example of a class that has no `_latex_`. All
> commands are repeated twice, one with Sage-4.7 and the second one with
> the patch applied. In both cases typeset checkbox on the top of the
> worksheet was tuned on.
>
> Also, I invite you to try
> {{{
> RubiksCube()
> }}}
> in the notebook with typeset mode on before and after the patch - such
> situations are precisely the ones that I wanted to solve (they are so
> bad, that printout does not reflect them accurately).
>
> It is possible that user classes will not have customized latex method
> and there are some standard classes that use their string representation.
> If this representation includes multiple lines, the result in most cases
> is not very good and sometimes quite horrible, making it unpleasant to
> use the notebook in typeset mode. The patch aims to fix this situation
> and clean up latex module along the way.
>
> The major change is in `sage.latex.str_function`. Also
> `sage.latex.JSMath.eval` is simplified a bit and does not alter the code
> almost at all anymore. The rest are mostly doctest adjustments and some
> code clean-up and simplifications which happened while I was going
> through it to understand how it works.
New description:
See the attached PDF for an example of a class that has no `_latex_`. All
commands are repeated twice, one with Sage-4.7 and the second one with the
patch applied. In both cases typeset checkbox on the top of the worksheet
was tuned on.
Also, I invite you to try
{{{
RubiksCube()
}}}
in the notebook with typeset mode on before and after the patch - such
situations are precisely the ones that I wanted to solve (they are so bad,
that printout does not reflect them accurately).
It is possible that user classes will not have customized latex method and
there are some standard classes that use their string representation. If
this representation includes multiple lines, the result in most cases is
not very good and sometimes quite horrible, making it unpleasant to use
the notebook in typeset mode. The patch aims to fix this situation and
clean up latex module along the way.
The major change is in `sage.latex.str_function`. Also
`sage.latex.JSMath.eval` is simplified a bit and does not alter the code
almost at all anymore. The rest are mostly doctest adjustments and some
code clean-up and simplifications which happened while I was going through
it to understand how it works.
'''Apply:'''
1. [attachment:trac_11498_LaTeX.patch]
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11498#comment:10>
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.