#17821: Refactor show() methods, rename to pretty_print
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner:
Type: enhancement | Status: new
Priority: major | Milestone: sage-6.6
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vbraun/refactor_pretty_print | 70e4d3af7d4f26e4cf7fca155ccfe12193e6dae4
Dependencies: #17234, #17980, | Stopgaps:
#18028, #18032 |
-------------------------------------+-------------------------------------
Comment (by novoselt):
Replying to [comment:19 vbraun]:
> I guess we should use inline/text style if and only if there is adjacent
stuff. So, for example, `pretty_print(a, b)` should use inline style and
`pretty_print(a); pretty_print(b)` should use block/display style.
How do you decide? If I made some output with suppressed newline in one
place and then do extra output in another, it is difficult to detect.
Also, if my code outputs two formulas on two lines and one of them is
long, it may not be good to use display style since the centered short
formula may be off the screen without centering. On the other hand, I
dislike inline fractions/sums/limits, so even side-by-side things may be
better in displaystyle.
It seems to me that its better to have a single default (display is more
natural), but have a simple way for the user to tweak things if desired
without the need of constructing all LaTeX code manually.
--
Ticket URL: <http://trac.sagemath.org/ticket/17821#comment:20>
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.
For more options, visit https://groups.google.com/d/optout.