Outputing lists without brackets in SageTeX
Hi,
how can I output a list in SageTeX without it being enclosed in brackets? Consider for example:
\begin{sagesilent}
A = [ 1, 2, 4 ]
\end{sagesilent}
and in the text
... $A = \{ \sage{A} \}$
produces A={[1,2,4]} instead of {1,2,4}. Or a more realistic example:
\begin{sagesilent}
R.<x,y> = PolynomialRing(QQ, 'x,y', order='lex')
I = R.ideal(x^2+1, y*x-y)
\end{sagesilent}
and know somewhere in the text I want to put
The Groebner basis of $I$ is $\{ \sage{I.groebner_basis()} \}$
but the result is: {[x2+1,y]} rather then expected {x2+1,y}