emaxima's problem with latex processing



I tried to make the manual for ctensr&itensor packages via emaxima interface 
in emacs.If nobody is object I'm planning just to transofrm and correct a 
little the "manual.txt" which is in share/tensor dir. Everything is ok so far 
except the problem with line truncation for a long tensor's expressions.
Also I found that emaxima was not able to  transform correctly the following 
expression
(E40) g[2,2] = 
(2*A*D*'DIFF(D,x,2)*x-A*('DIFF(D,x,1))^2*x-'DIFF(A,x,1)*D*'DIFF(D,x,1)*x+2*A*D*'DIFF(D,x,1)-2*'DIFF(A,x,1)*D^2)/(4*A^2*D^2*x)
It gives
\E44. g_{2,\linebreak[0]2}={{2\*A\*D\*\left({{d^{2}}\over{d\*x^{2}}}
 \*D\right)\*x-A\*\mathrm{\%DERIVATIVE}^{2}\left(\left(D
 ,\linebreak[0]x,\linebreak[0]1\right)\right)\*x-{{d}\over{d\*x}}\*A
 \*D\*\left({{d}\over{d\*x}}\*D\right)\*x+2\*A\*D\*\left({{d}\over{d
 \*x}}\*D\right)-2\*\left({{d}\over{d\*x}}\*A\right)\*D^{2}}\over{4\*
 A^{2}\*D^{2}\*x}} \\
However, when I proceed the right part of (E40) within maxima  via tex(...)
I have a different result. 
$${{2\,A\,D\,\left({{d^2}\over{d\,x^2}}\,D\right)\,x-A\,\left({{d
 }\over{d\,x}}\,D\right)^2\,x-{{d}\over{d\,x}}\,A\,D\,\left({{d
 }\over{d\,x}}\,D\right)\,x+2\,A\,D\,\left({{d}\over{d\,x}}\,D\right)
 -2\,\left({{d}\over{d\,x}}\,A\right)\,D^2}\over{4\,A^2\,D^2\,x}}$$

best regards for New Year

Valerij