I am trying to put this in a table inside my LaTeX document. How can I get this? Ctrl–K does it here but not sure how to do it in LaTeX.
Left Right Bottom Top Diagonal
Left 0.1303394 0.1084274 0.2158028 0.1050394 -0.2093420
Right 0.1084274 0.1632741 0.2841319 0.1299967 -0.2404701
Bottom 0.2158028 0.2841319 2.0868781 0.1645389 -1.0369962
Top 0.1050394 0.1299967 0.1645389 0.6447234 -0.5496148
Diagonal -0.2093420 -0.2404701 -1.0369962 -0.5496148 1.3277163
Best Answer
I would use the
siunitx
package for its ability to align numbers on their decimal points and display minus signs correctly and thebooktabs
package for its ability to draw well-spaced horizontal rules.I would also examine the rationale for show seven [7!] digits for all numbers. Rounding to four digits after the decimal marker should really be more than enough, right? Happily, the
siunitx
package can perform automatic rounding, as is demonstrated in the second table below.