texMath

texMath x -- convert x to TeX format for use in TeX math mode.

The main difference between this and tex is that the surrouding dollar signs aren't there.

i1 : R = ZZ[x]

o1 = R

o1 : PolynomialRing
i2 : texMath (x-1)^6

o2 = {x}^{6}-6 {x}^{5}+15 {x}^{4}-20 {x}^{3}+15 {x}^{2}-6 x+1

o2 : String

See also TeX and tex.


topindexpreviousupnext