[SciPy-User] 2d array to Latex

josef.pktd@gmai... josef.pktd@gmai...
Fri Jan 22 23:37:22 CST 2010

On Fri, Jan 22, 2010 at 11:59 PM, Pierre GM <pgmdevlist@gmail.com> wrote:
> 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

Thanks, I will look at the scikits. Your example looks simple enough,
but I don't feel like debugging latex (and struggle with formatting)
if I can avoid it.


> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

More information about the SciPy-User mailing list