If expr is some sage expression, then latex(expr) has type sage.misc.latex.LatexExpr. Then str(latex(expr)) is a Python string that you can process as you wish with your own string-processing function. For example, S = str(latex(expr)) S = S[1:-1] will drop the first and last character from S. Then expr = sage.misc.latex.LatexExpr(S) will convert the result back in to a latex expression.
(At least this works with small experiments..) Cheers, Ron Rivest -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org