On Mon, Jun 24, 2002 at 07:43:51AM +0200, Andre Poenitz wrote: > You basically have to add a function 'mathematicize' (or whatever) to every > math inset (or at least to the ones you are interested in) and there you > put code to transform the inset into Mma syntax. Usually you should be able > to copy the 'maplize' function and replace parantheses by square brackets > and things like that. Than you need to have a look add math_extern.C and > formulabase.C and hook calls to these new functions in.
It is not very nice to have this hardcoded in the LyX sources. can't you do it in external scripts, like the first implementation ? Another idea would be to use text template files. For example, an extern_maple would be something like Insets frac ($0)/($1) sqrt sqrt($0) ... End Header readlib(latex): latex/csname_font := `: ... End