Maxima: Modification to function tex().



Your request is for a program to do line-breaking for math. My guess is that
this feature would increase the code size for the tex() procedure by a
factor of 3.  That is, it is difficult.

Also, as you point out, to do line-breaking one has to know the width of the
target.  But also more.
Like what font and what type size (etc.). 

Alternatively, take the tex output and do some editing.  I find it almost
always necessary to do a little touch-up, anyway.

If anyone is interested in doing this, a program breqn using solely TeX is
around, but not a very efficient solution.  There is apparently also
solution in wxmaxima, and also in xmaxima.

In reality, displaying very large expressions (e.g. many pages) should be
done by some other means, like abbreviations, if they are to be
comprehensible.  Solving this problem would be nice, too.  

RJF


 
 

> -----Original Message-----
> From: maxima-bounces at math.utexas.edu 
> [mailto:maxima-bounces at math.utexas.edu] On Behalf Of C. Frangos
> Sent: Tuesday, July 10, 2007 9:46 AM
> To: maxima at math.utexas.edu
> Subject: Maxima: Modification to function tex().
> 
> 
> Dear All,
> 
> I wanted to ask if somebody could possibly modify the tex() 
> function such 
> that:
> 
> (1) The tex output automatically includes matching 
> parentheses commands, and 
> \\ so that very long expressions with parentheses, etc will 
> appear correctly 
> over multiple lines, for example,
> 
> \begin{eqnarray*}
> \left(\left( .................... \right.\right.     \\
> .............................................................   \\
> \left.\left.                               \right)\right) 
> \end{eqnarray*}
> 
> (2) The approximate width of each line above is specified by 
> a number or list 
> x, for example, tex(expression,x).
> 
> Thanks very much.
> 
> C. Frangos.
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>