question about texput



On 7/13/07, Evan <evanxxx at gmail.com> wrote:

> Can I see what tex outputs have been assigned for what atoms by
> texput? If yes, how?

texput and other TeX functions are in src/mactex.lisp.
But I am pretty sure all built-in TeX properties are assigned by
some means other than texput
(namely (SETF (GET 'FOO 'TEX) ...) or some equivalent).

The properties inspected by the Maxima tex function appear to be
TEX, TEXWORD, and TEXSYM. From looking at the code,
I believe the following is a reasonable summary:
TEX => a function which knows how to handle an operator
TEXWORD => a TeX string which is emitted in place of an atom
TEXSYM => a TeX string which is emitted in place of an operator
Sorry that this isn't better documented.

You can see which symbols have which properties via s.t. like:

:lisp (do-symbols (s :maxima) (let ((x (get s 'tex))) (if x (format t
"(get ~s 'tex) => ~s~%" s x))))

Also src/mactex.lisp is not too complicated -- just search for
the atom is question to see if it is assigned some property.

Hope this helps.
Robert Dodier