up previous next
LaTeX

LaTeX formatting

Syntax
LaTeX(X: OBJECT): STRING

Description
This function returns a string containing the argument formatted in LaTeX. From version 4.7.5 it returns a string, so it can be printed on a file. Can also be called as latex .

Example
/**/  Use R ::= QQ[x,y,z];
/**/  F := x^3+2*y^2*z;
/**/  LaTeX(F);
x^{3} + 2y^{2}z

/**/  M := mat([[1,2],[3,4]]);
/**/  LaTeX(M);
\left( \begin{array}{cc}
  1 & 2 \\
  3 & 4 \end{array}\right)

/**/  R ::= QQ[x,y,z];
/**/  LaTeX(ideal(x^2,y+z));
(x^{2},
 y +z)

/**/  P := NewFractionField(R);
/**/  Use P;
/**/  F := (x+y)/(1-z)^3;
/**/  LaTeX(F);
\frac{ - x - y} {z^{3}-3z^{2} + 3z-1}


See Also