Sage: Ticket #27078: Latex version of piecewise is cumbersome
https://trac.sagemath.org/ticket/27078
<p>
The latex produced by the <code>piecewise</code> function is rather cumbersome to look at. For instance:
</p>
<pre class="wiki">sage: var('y'); f = piecewise([((0,1), x^2*y), ([-1,0], -x*y^2)], var=x);
sage: latex(f)
piecewise\left(\left(\left(\text{\texttt{(0,{ }1)}}, x^{2} y\right), \left(\text{\texttt{[{-}1,{ }0]}}, -x y^{2}\right)\right), x\right)
</pre><p>
which looks very strange when rendered in a document. On the other hand, something like this
</p>
<pre class="wiki">\operatorname{piecewise}(x) = \begin{cases}x^2y, & x\in (0, 1)\\ -xy^2, & x\in [-1, 0]\\ \end{cases}
</pre><p>
is much easier to understand when rendered.
</p>
en-usSagehttps://trac.sagemath.org/chrome/site/logo_sagemath_trac.png
https://trac.sagemath.org/ticket/27078
Trac 1.1.6gh-JCGoranFri, 18 Jan 2019 16:32:54 GMTattachment set
https://trac.sagemath.org/ticket/27078
https://trac.sagemath.org/ticket/27078
<ul>
<li><strong>attachment</strong>
set to <em>piecewise.png</em>
</li>
</ul>
<p>
Piecewise current versus proposed Latex
</p>
TicketembrayMon, 25 Mar 2019 10:56:15 GMTmilestone changed
https://trac.sagemath.org/ticket/27078#comment:1
https://trac.sagemath.org/ticket/27078#comment:1
<ul>
<li><strong>milestone</strong>
changed from <em>sage-8.7</em> to <em>sage-8.8</em>
</li>
</ul>
<p>
Ticket retargeted after milestone closed (if you don't believe this ticket is appropriate for the Sage 8.8 release please retarget manually)
</p>
TicketembrayFri, 14 Jun 2019 14:55:02 GMTmilestone deleted
https://trac.sagemath.org/ticket/27078#comment:2
https://trac.sagemath.org/ticket/27078#comment:2
<ul>
<li><strong>milestone</strong>
<em>sage-8.8</em> deleted
</li>
</ul>
<p>
As the Sage-8.8 release milestone is pending, we should delete the sage-8.8 milestone for tickets that are not actively being worked on or that still require significant work to move forward. If you feel that this ticket should be included in the next Sage release at the soonest please set its milestone to the next release milestone (sage-8.9).
</p>
Ticket