Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Extra curly braces in latex() command?


I am trying to copy latex code generated by Sage to Lyx. It seems Sage generates additional curly braces around (). For example, with:

sage: latex((alpha^2-alpha)*theta)

I get:

{\left(\alpha^{2} - \alpha\right)} \theta

If I paste this code to Lyx math, then there are unnecessary {} around the () showing. Maybe it's LyX's problem since if I paste it to an .tex source and compile it then it does not show. However I already have a long document in LyX so it would be great if there is any way to get rid of {}.

Thank you!