tex x
i1 : R = ZZ[a..f];
i2 : tex matrix {{a^2+2,b,c},{d,e,f^3-a}} o2 = $\left(\!\begin{array}{ccc} a^{2}+2&b&c\\ d&e&f^{3}-a \end{array}\!\right)$
The object tex is a method function with a single argument.
The source of this document is in Macaulay2Doc/functions/tex-doc.m2:26:0.