maxima tex output to show brackets for sin and cos
问题 I use maxima's tex output and would like to change the way it outputs sin(x). It currently does: tex(sin(x)); $$\sin x$$ But I would like to have brackets around the x, but not always; for instance, if i use this: sin(x/2) already has \left( and \right) tex(sin(x/2)); \begin{equation} \sin \left({{x}\over{2}}\right) \end{equation} is this possible, maybe with the texput function? 回答1: Well, if you are not adverse to putting in a little Lisp code: (%i1) :lisp (setf (get '%sin 'tex) nil) (%i1)