\\ cellwidth in mm. \\ To use with colortbl in Latex. t_colortable (A,cellwidth=1,stretch=1.75) = {my (n,m); [n,m]=matsize(A); t=cellwidth/4.236; B=matrix(n,m,i,j,\ Strprintf("\\cellcolor{%s}%s",A[i,j], if (j==m,"\\\\","&"))); B=t_word(B,,""); as=t*stretch; a=Strprintf("{\\setlength{\\tabcolsep}{%.2fmm}",cellwidth/2); b=Strprintf("\\renewcommand{\\arraystretch}{%.2f}",as); c=Strprintf("\\begin{tabular}{*{%d}{l}}",m); d="\\end{tabular}}"; B=t_word([a,b,c,B,d],,"\n"); B;}