Ted wrote: > Wouldn't regular expressions be inadequate for deciphering nested > expressions like the following?: > > sage: a = cos(cos(cos(x))) > sage: a > cos(cos(cos(x))) > sage: latex(a) > \cos \left( \cos \left( \cos \left( x \right) \right) \right) > > For nested expressions, my understanding is that one would need to > first generate something line an Abstract Syntax Tree using a latex > lexical analyzer and parser and then process the tree in order to > generate equivalent openoffice code.
After studying this further, it looks like it is just a straightforward translation from latex to OpenOffice math format. I have been searching the net for code that does this already but I have not found anything yet. If the process is this simple, I wonder why there aren't a bunch of people who have done it already? Ted --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---