> Sounds truly wild. If these programms have a scripting or macro
> language,

Most of the interesting programs are scriptable. Maple e.g:

        echo "lprint(expand((x+1)^3));" | maple -q

        --> x^3+3*x^2+3*x+1

The problem is parsing. First you have to convert from
LyX formula (sort of LaTeX) to Maple syntax which is *not* trivial
since LaTeX does not preserve the logical structure of the formula
- just think about indices etc. Calling Maple is the easy part.
Converting back to LaTeX is not difficult either:

        echo "latex(expand((x+1)^3));" | maple -q

        --> {x}^{3}+3\,{x}^{2}+3\,x+1

So if you come up with a decent LaTeX parser in C++ I am willing to
implement the easy parts ;-)

Andre'

PS: The LyX server is not of much help in this scenario.

-- 
It'll take a long time to eat 63.000 peanuts.
Andr� P�nitz ......................... [EMAIL PROTECTED]

Reply via email to