HELP FOR: The TEX package.
CALLING SEQUENCE:
- TEX[<function>](args)
- <function>(args)
-
SYNOPSIS:
- This package provides an environment of functions that produce output
which is suitable with a TeX processor. It knows how to format almost
all the types defined in Maple, while it knows how to convert all
standard internal Maple functions or objects such as integrals, limits,
sums, products, and even arrays and tables.
- The mathematical format is taken, in general, from the command latex so
that it is said to be as in the CRC handbook or the Handbook of
Mathematical functions.
- Almost all the mathematical objects manipulated by ACE have a default
corresponding function describing the output format. This is the case
for symmetric function bases, noncommutative symmetric function bases,
quasi-symmetric function bases, Schubert polynomials, ..., but it is
still possible to modify these default formats.
- Whenever there is a conflict between a function name in TEX and another
name used in the same session, use the long form TEX[<function>].
- The available functions are:
- It is possible to extend the abilities of TEX to format other objects
by defining procedures named by:
`TeX/UserdefinedFun/<name>`
to define a format for the function whose
name is <name>,
`TeX/UserdefinedName/<name>`
to define a format for the string whose
name is <name><number>.
`TeX/UserdefinedIndexed/<name>`
to define a format for the indexed object
whose name is <name>.
- When it encounters a call to <name>(...), the Tex function will call
the procedure (if it exists) `TeX/UserdefinedFun/<name>`.
- When it encounters a name <name><number>, the Tex function will call
the procedure (if it exists) `TeX/UserdefinedName/<name>` with the
parameter <number>.
- When it encounters a name <name>[sequence], the Tex function will call
the procedure (if it exists) `TeX/UserdefinedIndexed/<name>` with the
the sequence of parameters sequence.
- Note that the output may include the commands to invoke the Tex
math environment: this can be done by positionning some variables...
- For help with a particular function do either ?TEX[<function>] or
?TEX,<function> where <function> is one from the above list.
EXAMPLES:
> with(TEX):
> Tex(x^2 + y^2 = z^2);
x^{2}+y^{2}=z^{2}
> Tex(Int(1/(x^2+1), x) = int(1/(x^2+1), x),'TEX_MODE'='MATHS');
$\\int \\! {{1\\over x^{2}+1}}{dx}=\\arctan (x) $
> TexStr(`\\\\end`);
\\end
SEE ALSO: TEX[advanced] appendto C fortran TEX[functions] eqn
TEX[indexed], latex,TEX[names],TEX[variables], writeto