Status: New
Owner:
Labels: Type-Defect Priority-Medium
New issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
see
http://groups.google.com/group/sympy-patches/browse_thread/thread/670ff83d8450131d
Currently, printing does not wor
Updates:
Status: Started
Labels: Milestone-Release0.6.5
Comment #1 on issue 1477 by ondrej.certik: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
The patch looks good to me --- but could you please write tests for it?
Then I'll
push it in.
Comment #2 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Happy to write tests, but I am not sure how to automatically test printing.
Of
course, I can define various symbols and verify that latex() does not throw
an error,
Comment #3 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
OK, I figured out how you all test latex() and now have had time to patch
in a test
for this issue.
Attachments:
0001-latex-test_latex_issue1477.patch 1.0 KB
Updates:
Labels: NeedsReview
Comment #4 on issue 1477 by ondrej.certik: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
or CC fields of this is
Comment #5 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
I've just tested the patches. Works better than before, but there are quite
some
cases that don't work for still. I might be going a bit too far:
latex(Symbol("
Comment #6 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
OK, this should work. Tests included.
Attachments:
0001-Robust-printing-of-latex-sub-and-superscripts.patch.gz 1.6 KB
--
You received this message becau
Comment #7 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Much better than my original patch. Do you know how to fix prettyprint too?
The
original code in pretty_symbol() is a bit more complicated than the latex
case (or at
Comment #8 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Should not be too difficult. There will be a lot of common code, and this
should be
put in a separate function. Something like split_super_sub. I would suggest
Comment #9 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Just an idea here: Could we map the ^ sign to the __ sign; i.e. 2
consecutive
underscores?
--
You received this message because you are listed in the owner
or CC fiel
Comment #10 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
You're right, a double underscore can be implemented at the ccode level, no
matter
what convention we define for super- and subscript for symbol names. I'll
t
Comment #11 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
I've put some initial patches on github. The pretty printer should be more
or less
OK. Tests included. Have fun.
http://github.com/tovrstra/sympy/commits/issue
Comment #12 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Looks good to me, although someone who understands Python really well
should review
it. Printing in these odd cases is certainly better than it used to be in
0.6.4,
Comment #13 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
That shouldn't be too difficult to handle, but it would be wise to let one
of the
regular sympy developers take a look at the current changes. Otherwise, it
m
Comment #14 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
'__' is now a working alternative for '^' (see github)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because yo
Comment #15 on issue 1477 by andy.terrel: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Just a comment. In multi indexes I usually see spaces between the index
and a comma
indicates the partial derivatives. So
x_{2 3} means the second and third indexes
Comment #16 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Andy: Could you give a practical example? I'm a bit lost.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because
Comment #17 on issue 1477 by andy.terrel: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Here are some places that explain it better.
http://mathworld.wolfram.com/CommaDerivative.html
http://en.wikibooks.org/wiki/General_relativity/Coordinate_systems_and_t
Updates:
Labels: -Milestone-Release0.6.5 -NeedsReview
Comment #18 on issue 1477 by ondrej.certik: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
The patch is in. Is this issue fixed?
--
You received this message because you are listed in the owner
o
Comment #19 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
My original concern is thoroughly addressed. Andy seems to have a
legitimate point
about the use of commas between subscripts (a notational convention that I
was not
Comment #20 on issue 1477 by ondrej.certik: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Let's fix it then.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your
Updates:
Labels: NeedsReview
Comment #22 on issue 1477 by ondrej.certik: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
OK, I'll wait for toon if he also thinks the branch should go in and review
it then.
--
You received this message because you a
Comment #21 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Ondrej,
Did you intend to only commit Toon's latex patch ("Robust printing of latex
sub and
superscripts")
http://git.sympy.org/?p=sympy.git;a=commit;h=a030e7e3298d
Comment #23 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
The entire branch also fixes this issue in mathml, pretty printing and
latex. Common
code is shared in conventions.py.
I'll add a patch to the branch for using
Updates:
Owner: Toon.Verstraelen
Comment #24 on issue 1477 by Toon.Verstraelen: Printing with double
subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
White space is added. See
http://github.com/tovrstra/sympy/commits/issue1477.
--
You received this message because yo
Updates:
Labels: -NeedsReview
Comment #25 on issue 1477 by ondrej.certik: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
The last branch is in now. Is the issue fixed?
--
You received this message because you are listed in the owner
or CC fields of
Comment #26 on issue 1477 by goodrich.ben: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
Yes, unless Toon objects. -- Ben
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You ma
Updates:
Status: Fixed
Comment #27 on issue 1477 by smichr: Printing with double subscripts
http://code.google.com/p/sympy/issues/detail?id=1477
(No comment was entered for this change.)
--
You received this message because you are listed in the owner
or CC fields of this issue, or beca
28 matches
Mail list logo