Matrix tex output doesn't work for MimeTeX or MathTeX



tex(matrix([1,1,1],[1,1,1],[1,1,1]));

 

outputs:

 

$$\pmatrix{1&1&1\cr 1&1&1\cr 1&1&1\cr }$$

 

Which does not render properly for MimeTex, which is the program we're
using to display the output of Maxima. However, this would work:

 

$$\begin{pmatrix}1&1&1\\ 1&1&1\\ 1&1&1\end{pmatrix}$$

 

Would this be hard to fix in the source? Do you need me to send a patch
so that it can be included in the next release?

 

Regards,

 

-Nathan