CoCoA:Latex

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Latex

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\ )
-------------------------------

Syntax

Latex(X:OBJECT):TAGGED(<quotes><tt>$latex.Latex</tt></quotes>)

Format

Sprint

   <type>io</type>
   <type>printing</type>
   <type>string</type>