A = GF(2)
R.<x> = PolynomialRing(A,1)
I = R.ideal(x^5 - 1)
Q.<t> = R.quotient_ring(I)
E = Q(1 + t^2 + t^4)
pretty_print('$A = %s$'%latex(A))
pretty_print('$R = %s$'%latex(R))
pretty_print('$I = %s$'%latex(I))
pretty_print('$Q = %s$'%latex(Q))
pretty_print('$E = %s$'%latex(E))
I'm reporting this here in case it is a bug. If there is a more appropriate way to render strings that are a mix of text and LaTeX'd Sage objects, then please let me know.