On 11/13/08, Andrew Yeltsin <gutierrez at nigma.ru> wrote:
> I tried to find a function like displa, but gives TeX-syntax output.
> I've found the "mactex.lisp" file and tried to use function "tex"
Try calling $TEX, which is the top-level, user-visible function named "tex".
$TEX is not an ordinary Lisp function so you call it like this:
:lisp (mfuncall '$tex '((MEQUAL SIMP) ((MPLUS SIMP) -8 ((MTIMES SIMP)
-4 $X) ((MTIMES SIMP) 8 ((MEXPT SIMP) $X 2))) 0))
=> $$8\,x^2-4\,x-8=0$$
tex takes some optional arguments, see ? tex or ?? tex for more about that.
HTH
Robert Dodier