LaTeX for elements of quotient rings

19 views
Skip to first unread message

Keir Lockridge

unread,
Jul 14, 2017, 10:38:40 AM7/14/17
to sage-support
When I execute the following block of code in a Sage worksheet (I did this in a .sagews file on cocalc.com, kernel 7.6), I get unexpected behavior from the last pretty_print statement (the LaTeX doesn't render at all).

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.

Reply all
Reply to author
Forward
0 new messages