Ticket #666 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[with patch] add spacing in latex output of matrices for increasing readbility

Reported by: pdenapo Owned by: was
Priority: trivial Milestone: sage-2.8.5
Component: linear algebra Keywords:
Cc: Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

Currently, printing of matrices in Latex form is difficult to read. I'm submitting a (trivial) patch that adds more spacing to increase readibility.

Example:

sage: M=MatrixSpace(QQ,2,2)
sage: A=M([[2,3],[4,5]])
sage: latex(A)

currently gives:

\left(\begin{array}{rr}
2&3\\
4&5
\end{array}\right)

My patch changes this to

\left(\begin{array}{rr}
2 & 3 \\
4 & 5
\end{array}\right)

Attachments

matrix_latex_spacing.patch Download (1.3 KB) - added by pdenapo 3 years ago.

Change History

Changed 3 years ago by pdenapo

Changed 3 years ago by mhansen

  • summary changed from add spacing in latex output of matrices for increasing readbility to [with patch] add spacing in latex output of matrices for increasing readbility

Changed 3 years ago by was

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.