I have the following code:
G37=GroupAlgebra(SymmetricGroup(3),GF(7))
M37=MatrixSpace(G37,2,2)
S3=SymmetricGroup(3).list()
@interact
def _(a11=input_grid(1,6, default = [1,2,0,0,0,0], label='$a_{11}$'),a12=input_grid(1,6, default = [0,1,2,2,3,3], label='$a_{12}$'),a21=input_grid(1,6, default = [0,3,4,2,3,4], label='$a_{21}$'),a22=input_grid(1,6, default = [0,1,1,0,0,0], label='$a_{22}$')):
A11=sum([G37(a11[0][k])*G37(S3[k]) for k in [0..5]])
A12=sum([G37(a12[0][k])*G37(S3[k]) for k in [0..5]])
A21=sum([G37(a21[0][k])*G37(S3[k]) for k in [0..5]])
A22=sum([G37(a22[0][k])*G37(S3[k]) for k in [0..5]])
pretty_print(html('$A=%s$'%latex(M37([A11,A12,A21,A22]))))
The first element $A_{11}$ appears as $+2(1,2)$ instead of $()+2(1,2).$ Is it possible to protect the groupring element $()$ somehow? Thanks for the answers in advance.