up previous next

Latex

Syntax

Latex(X:OBJECT):TAGGED("$cocoa/latex.Latex")
    

Summary

LaTeX formatting

Description

This function returns its argument in a format suitable for inclusion in a LaTeX document.

example

    
Use R ::= Q[x,y,z];
F := x^3+2y^2z;
Latex(F);
x^{3} + 2y^{2}z
-------------------------------
M := Mat([[1,2],[3,4]]);
Latex(M);
 \left( \begin{array}{ll} 
1 & 2 \\ 
3 & 4 \end{array}\right) 

-------------------------------
F := (x+y)/(1-z)^3;
Latex(F);
\frac{ - x - y}{z^{3}-3z^{2} + 3z-1}
-------------------------------
Latex(Ideal(x^2,y+z));
( \ x^{2}, 
y + z\ )
-------------------------------
        
    

See Also