[SciPy-User] 2d array to Latex

Pierre GM pgmdevlist@gmail....
Fri Jan 22 22:59:51 CST 2010

On Jan 22, 2010, at 10:39 PM, josef.pktd@gmail.com wrote:
> Is there a function somewhere to print a 2d array with Latex markup?
> No fancy table required, just for a quick copy and paste into a Latex document.

Check scikits.timeseries.lib.reportlib, I think Matt coded something to that effect. You'll probably have to adapt it a bit, but that should get you started.
Or you could do it yourself: 
* print the \begin{table} header
* print "\\\n".join(["&".join(map(str,line)) for line in array])
* print the \end footer

More information about the SciPy-User mailing list