Sponsored links: Algebra eBooks ### The Maxima on-line user's manual

Algebra Calculator

#### Search: #### Set_tex_environment

Function: set_tex_environment (<op>, <before>, <after>) Customize the TeX environment output by tex. As maintained by these functions, the TeX environment comprises two strings: one is printed before any other TeX output, and the other is printed after.

Only the TeX environment of the top-level operator in an expression is output; TeX environments associated with other operators are ignored.

get_tex_environment returns the TeX enviroment which is applied to the operator <op>; returns the default if no other environment has been assigned.

set_tex_environment assigns the TeX environment for the operator <op>.

Examples:

          (%i1) get_tex_environment (":=");
(%o1) [
\begin{verbatim}
, ;
\end{verbatim}
]
(%i2) tex (f (x) := 1 - x);

\begin{verbatim} f(x):=1-x; \end{verbatim}

          (%o2)                         false
(%i3) set_tex_environment (":=", "$$", "$$");
(%o3)                       [$$,$$]
(%i4) tex (f (x) := 1 - x);
$$f(x):=1-x$$
(%o4)                         false

There are also some inexact matches for set_tex_environment. Try ?? set_tex_environment to see them.

(%o1)                                true
(%i2) 

### Related Examples

##### set_tex_environment

? set_tex_environment;

Calculate

##### set_tex_environment

? set_tex_environment;

Calculate 