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