RE: [Aimmath-developers] Sorry ... new bug in LaTeX translation
Brought to you by:
gustav_delius,
npstrick
From: Greg G. <gr...@ma...> - 2003-09-15 09:49:30
|
On Sun, 14 Sep 2003, Ken Monks wrote: GG> I'm still getting the `` in one of my Trig examples. So I don't think this GG> is fixed yet, but thanks, with all the info. you've given I think I'll be GG> able to sort it out. ... > > Just look at the `latex/latex/symbol` routine in aim/LaTeX.mpl. You will > see what changes I made since I have them commented. I tested the two > examples you gave in your original message and they both worked as you > wanted on my system, so perhaps the `` in your example is a different > situation (or the mods I just made only work in Maple 9)? Or perhaps it is > coming from some other Maple latex routine that we are not currently > overriding because the expression you are constructing with `` is not a > symbol? Hi Ken, It took me a while to see it but the committed routine's name was `latex/latex/symbol_no` rather than `latex/latex/symbol` ... I guess that was your debugging name. Anyway, changing the name it worked fine. Anyway, I worked out what had been going wrong to produce the bug we were seeing before. Maple does in fact have a bug in this routine ... I guess you spotted it ... in all the clauses starting elif is(QQ, BottomProp) <> FAIL it checks for 0 < length(QQ) too late (after testing something that requires the string to be nonempty) and your change fixes that bug. I still don't like what the routine does to `-1` (it typesets in as verbatim). The else block at the end, I think should be changed to simply output the list ... or maybe check for the special chars and if there are any output it verbatim ... I'll look at it again later on. Regards, Greg |