From: <noreply@so...>  20020715 16:21:45

Bugs item #534874, was opened at 20020325 16:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=534874&group_id=4933 Category: None Group: None >Status: Open Resolution: Fixed Priority: 5 Submitted By: Jesper Harder (harder) Assigned to: Nobody/Anonymous (nobody) Summary: Fixes for mactex.lisp Initial Comment: Here's a patch that fixes some problems in mactex.lisp: * texmexpt The patch fixes some different problems in texmexpt: tex('diff(f,x)^2); => $$%DERIVATIVE^2\left(\left(f,x,1\right)\right)$$ This is not want we want, so we need to add some more exceptions. tex(f(x)^2); => $$f^2\left(\left(x\right)\right)$$ i.e. there's one set of brackets too much. tex(f(x)^(a+b)); => $$ Error: ((MPLUS) $b $a) is not of type (OR RATIONAL LISP:FLOAT). That happens because we're doing a numeric comparison of the exponent. * texmbox \framebox doesn't work in math mode, use \boxed instead. Also,support labelled boxes. * texchoose tex(binomial(a,b)); => $$\pmatrix{a\b}$ which doesn't typeset a proper binomial  use the builtin TeX command \choose instead.  >Comment By: Raymond Toy (rtoy) Date: 20020715 12:21 Message: Logged In: YES user_id=28849 Sorry for messing up your original patch. I've applied your new patch. Let me know if it's working. Also, shouldn't lsum do some instead of just printing lsum? I have no problems if you send patches to the mailing list instead of here. (I'd actually prefer that because I hate this web thing too.)  Comment By: Jesper Harder (harder) Date: 20020703 19:28 Message: Logged In: YES user_id=177224 > You didn't give an example \boxed example, so I don't know > what that does. It just replaces \framebox with \boxed, because \framebox only works in text mode not in math mode. Before the patch: tex(box(a+b)); ==> $$\framebox{b+a}$$ After the patch: tex(box(a+b)); ==> $$\boxed{b+a}$$ The texmlabox stuff adds support for labelled boxed, e.g. tex(box(a+b,foo)); ==> $$\stackrel{foo}{\boxed{b+a}}$$ > Please try this out when you can. It works fine except that you missed a part of my patch: %lsum, %limit are also execeptions, and I think there's a typo  %integral should be %integrate. Here a some examples: tex('limit(f(x),x,0)^2); ==> $$\lim ^2\left(f\left(x\right),x,0\right)$$ tex('lsum(f(x),x,0)^2); ==> $$%LSUM^2\left(f\left(x\right),x,0\right)$$ tex('integrate(f(x),x)^2); ==> $$%INTEGRATE^2\left(f\left(x\right),x\right)$$ I've attached a patch against the newest version. (BTW, I really, really dislike this awkward Sourceforge web interface  isn't there some way to submit patches via email instead?)  Comment By: Raymond Toy (rtoy) Date: 20020626 13:59 Message: Logged In: YES user_id=28849 I'm closing this as fixed. Reopen later if necessary.  Comment By: Raymond Toy (rtoy) Date: 20020626 13:56 Message: Logged In: YES user_id=28849 I'm closing this as fixed. Reopen later if necessary.  Comment By: Raymond Toy (rtoy) Date: 20020626 11:07 Message: Logged In: YES user_id=28849 I'm closing this as fixed. Reopen later if necessary.  Comment By: Raymond Toy (rtoy) Date: 20020622 13:07 Message: Logged In: YES user_id=28849 I applied your patch, with some changes, and all of your examples produce the desired result now. You didn't give an example \boxed example, so I don't know what that does. Please try this out when you can.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104933&aid=534874&group_id=4933 