
TeX - TeX-formatted output

Calling sequence:
TeX(expr)

Parameter:

expr   --  expression

Overloading:

1

Summary:

TeX returns a TeX-formatted string representing expr. This string may be
printed to a file using fprint. Use the printing option Unquoted to remove
quotes and to expand special characters like newlines and tabs.

The output string may be used in the math-mode of TeX. Note that TeX
currently doesn't break large formulas into smaller ones.

>>  TeX(int(exp(x^2)/x, x));

     "\\int \\frac{1}{x} \\mbox{exp}\\left(x^2\\right) d x"

>>  print(Unquoted,%);

      \int \frac{1}{x} \mbox{exp}\left(x^2\right) d x

See also:  fprint

