When sage converts a long list to a latex string, it inserts '\\' as a separator. Is this desired behavior? In many tex situations this does nothing, and in other situations it causes problems. To me, it seems that the only situation where this behavior is desired is covered by EMBEDDED_MODE (whatever that is) which wraps the list with an array environment.
If this is not the desired behavior, perhaps I will submit a patch to fix it, or else, since the change is just one line, perhaps I might just leave it by saying: Changing line 67 of sage/misc/latex.py (in function list_function(x)) from sep = ', \n\\\\' to sep = ', \n ' solves the problem, if this is indeed a problem. An example follows: sage: a = [1/2 for i in range(20)] sage: latex(a) \left[\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}, \\\frac{1}{2}\right] sage: sage.misc.latex.EMBEDDED_MODE=True sage: latex(a) \begin{array}{l}[\frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2},\\ \frac{1}{2}],\\ \end{array} sage: --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---