Matrix tex output doesn't work for MimeTeX or MathTeX



On Wed, Aug 6, 2008 at 3:59 PM, Nathaniel E. Powell
<nathan.powell at agilix.com> wrote:

> 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}$$

load("mactex-utilities") loads an alternate TeX function for matrix
which outputs \begin{pmatrix} ... \end{pmatrix}.
It also changes the TeX output for quotients. If you want just the
matrix stuff, I guess you can  copy & paste just that part to
maxima-init.lisp or something.

Dunno if  \begin{pmatrix}  ... \end{pmatrix} should be the default
since it's specific to AMSTeX. But in any event I wish there were
an easy way to switch between TeX flavors.

HTH

Robert Dodier