[Maxima] Maxima removes parentheses from cos(x)

Barton Willis willisb at unk.edu
Sun Oct 14 18:55:04 CDT 2007


-----maxima-bounces at math.utexas.edu wrote: -----

>when exporting to TeX, cos(x)*y is printed as \cos x\,y and my students
>could read this at cos(x*y).

Try this:

(%i3) :lisp(setf (get '%cos 'tex) nil);
NIL

(%i3) tex(cos(x) * y)$
$$\cos \left(x\right)\,y$$

You'll need to do lisp(setf (get '%sin 'tex) nil), and ...

BW


More information about the Maxima mailing list