Macaulay2 » Documentation
Packages » Macaulay2Doc :: texMath
next | previous | forward | backward | up | index | toc

texMath -- convert to TeX math format

Synopsis

Description

The main difference between this and tex is that the surrounding dollar signs aren't there.
i1 : R = ZZ[x];
i2 : texMath (x-1)^6

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

Caveat

No attempt is made to wrap large matrices or equations.

See also

For the programmer

The object texMath is a method function with a single argument.