Thank you for your reply!
--- Andre Poenitz <[EMAIL PROTECTED]> wrote:
> On Sat, Mar 22, 2003 at 06:06:11AM -0800, Serge
> Winitzki wrote:
> > in 1.3.1 I noticed a new menu item "use computer
> > algebra system". I have some questions:
> > - how to add new computer algebra systems,
> > particularly free ones (gap, pari/gp, yacas, ...?)
> Can
> > a user do this by putting something in .lyx
> directory?
>
> No, it needs a couple of lines of "real code". It's
> not hard though.
> Have a look at src/mathed/math_extern.C if you are
> interested.
Thank you, I looked at that file. It seems that after
all it *is* possible to put a script into
~/.lyx/mathed/extern_XYZ and then the command
"math-extern XYZ simplify" will call that script and
expect some answer. No changes in C++ code.
Of course, the format of input/output is not
documented and it's a problem. I tried a few equations
from my LyX documents to get a feel of what gets
passed to that script. Seems not hard to parse at
first glance.
There is one problem however: when a LyX expression
contains an apostrophe character ' then this breaks
the shell escape that runs things like
echo '[command [whatever ...]]' |
~/.lyx/mathed/extern_XYZ
An apostrophe character in equations is okay for
things like y'-y=0 (but not for y'^2 -y =0).
So it would be nice to get a hold of a specification
of this MathArray export format. I'm surprised that
you don't have external scripts for maple, maxima,
etc. and process it inside C++ instead.
=====
----
Serge Winitzki
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com