The SL2Z object is from the modular stuff with about zero integration with 
matrix groups, unfortunately. Compare the "matrix group" SL(2,Z): 

sage: S, T = SL(2,ZZ).gens()
sage: latex(S)
\left(\begin{array}{rr}
0 & 1 \\
-1 & 0
\end{array}\right)

The output comes from the modular SL2Z having no functionality for latex 
output, so text output is converted to LaTeX using \verb and array.


On Thursday, March 28, 2013 4:08:28 PM UTC, John Cremona wrote:
>
> This is horrible (and causes nasty things to happen in SageTex): 
>
> sage: S,T = SL2Z.gens() 
> sage: latex(S) 
> \begin{array}{l} 
> \verb|[|\phantom{\verb!x!}\verb|0|\phantom{\verb!x!}\verb|-1]|\\ 
> \verb|[|\phantom{\verb!x!}\verb|1|\phantom{\verb!xx!}\verb|0]| 
> \end{array} 
>
> This is much better: 
>
> sage: latex(S.matrix()) 
> \left(\begin{array}{rr} 
> 0 & -1 \\ 
> 1 & 0 
> \end{array}\right) 
>
> but where is the first version coming from? 
>
> John 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to