mactex-utilities: Problem with tex() and matrices.
Subject: mactex-utilities: Problem with tex() and matrices.
From: Peter Gustafson
Date: Mon, 15 Jan 2007 12:23:48 -0500
Robert Dodier wrote:
> Hmm, this is strange ... I wonder why the indices are spelled out
> (one, two, three) instead of being written as numerals.
> What does build_info() report?
>
> About mactex-utilities, I don't know what the problem is.
> Maybe it's enough just to put the following bit in a separate file
> and load it (assuming what you want is \frac instead of \over).
>
> (defun tex-mquotient (x l r)
> (if (or (null (cddr x)) (cdddr x)) (wna-err (caar x)))
> (setq l (tex (cadr x) (append l '("\\frac{")) nil 'mparen 'mparen)
> r (tex (caddr x) (list "}{") (append '("}") r) 'mparen 'mparen))
> (append l r))
>
> Hope this helps,
> Robert
Hi Robert, yes it does help. The behavior is as expected when I simply
add that bit to my maxima-init.lisp file. Curious as that appears to be
same code as is in the mactex-utilities file, so I wonder where it breaks.
With regard to the indices... I guess I should have mentioned I use a
maxima-init.mac to texput the output as I want it. It is an upstream
conflict, where I have defined \newcommand{\alphaathreethree}{...} etc.
In latex it seems commands cannot have numeric characters so I had to
spell them out.
Thanks a bunch!
Pete