texput and .



On Saturday 10 of July 2010 17:43:03 you wrote:
> On Fri, Jul 9, 2010 at 10:06 PM, Zbigniew Komarnicki <cblasius at gmail.com> 
wrote:
> > (%i1) load("mactex-utilities")$
>
> Not necessary, the texput stuff was merged into the main Maxima
> source some years ago.
>
> > (%i3) matchfix("transpose(", ")")$
> > (%i4) texput ("transpose(", [" (", ")^T "], matchfix)$
>
> I can't try it now, but I think you want to omit the call to
> matchfix and change texput to texput(something, postfix).
> See the reference manual for texput and look for the postfix flag.
>
> best
>
> Robert Dodier

I'm very sorry for the second mail but forgot add CC to maxima list.

I could not obtain working rule with postfix flag :-( 

I only got this with matchfix and nary and it work:

(%i1) set_tex_environment_default("
\\begin{gather}
  ",      "
\\end{gather}
")$

(%i2) matchfix("transpose(", ")")$
(%i3) texput ("transpose(", [" (", ")^T"], matchfix)$
(%i4) texput(".", "", nary)$

(%i5) eq: transpose(D . transpose(A) + X . transpose(B));
(%o5)       transpose(X . transpose(B) + D . transpose(A))

(%i6) tex(eq)$

\begin{gather}
   (X (B)^T+D (A)^T)^T
\end{gather}


Thank you.

Zbigniew