This patch contains the implementation of the new 'math-extern' LyX
function.
If you invoke 'math-extern something' (preferably by some keybinding)
in a math inset, the inset will translate its contents into some
"normalized" form, invoke 'lyx2something <normalform> <outfilename>',
and replaces its contents with LaTeX read back from the file <outfilename>.
The lyx2something can be any executable taking to arguments on the
commandline, namely an "normalized" form of the content of an math inset
and a file name. It is supposed to produce some LaTeX formula in the
file.
The patch contains a Tcl script 'lyx2maple' which essentially converts
the 'normalized' form into Maple input and pipes this into 'maple -q >
outfile'.
This is far from complete, needs some more work on the mathed parser and
the macro handling as well as a more complete list of "supported"
functions in the script. The current state is not much more than a toy
(1+2 works, but not much more), so don't expect too much...
Andre'
PS: To implement this correctly we'd probably some semantical structure
in parallel to the purely layout oriented LaTeX-like current structure
similar as MathML does and this will certainly not happen soon...
--
André Pönitz ............................................. [EMAIL PROTECTED]