beginner's questions



Hello list,

I apologize in advance if these questions seem silly to you. Please point me
to the right direction so I can educate myself, if they are too basic. I am
completely new to Maxima and am working my way through the first tutorials
whilst trying to figure out how to solve my problems at hand.

I am using Maxima from within Emacs, and I would like it to break lines at
every '+' or '-', and keep the products in one line. How would I do that -
is it even possible?

Also, I would like to collect terms in terms of a certain expression, that
is, I would like to simplify a long statement by having it grouped according
to something like "sin(alpha)", "cos(alpha)" or combinations of those, e.g.

A*B*C*sin(alpha) + D*E*F*cos(alpha) + G*H*I*sin(alpha)*cos(alpha) +
J*K*L*cos(alpha) + M*N*O*sin(alpha) + O*Q*R*sin(alpha)*cos(alpha)

becomes

(A*B*C+M*N*O)*sin(alpha) + (D*E*F+J*K*L)*cos(alpha) +
(G*H*I+O*Q*R)*sin(alpha)*cos( alpha)

Thank you for helping me out.

Stephan