Hi everyone, i use Sage for working with big expressions. To receive
observable output i use latex's package breqn that can automatically
divide the expression into several lines. But there is the problem
with latex() command. For example here is the code(in notebook):
#
var("a,b,c,d,f,g")
expr=(a - b)*f + (c - d)*g
latex(expr)
#
Output of this code is:
#
{\left(c - d\right)} g + {\left(a - b\right)} f
#
Breqn package can not divide expression into lines if it is included
ino braces { }. So, expression above can be automatically divided only
into two lines, like this:
{\left(c - d\right)} g + \\
{\left(a - b\right)} f
But, if the braces { } are removed, i.e
\left(c - d\right) g + \left(a - b\right) f
then the breqn package can divide this expression very well, for
example like this
(c - \\
d) g + \\
(a - \\
b) f \\
(Of course, it is just example, actual expression is more complicated)
#
Is it possible to remove braces { } from output of command latex()?
I.e. i want that the output of
#
var("a,b,c,d,f,g")
expr=(a - b)*f + (c - d)*g
latex(expr)
#
was
\left(c - d\right) g + \left(a - b\right) f
instead of
{\left(c - d\right)} g + {\left(a - b\right)} f
Help me please, i very need it.
P.S. Sorry for my rough english.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org