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

Algebra Calculator

#### Search: #### Get_tex_environment_default

Function: get_tex_environment_default ()

Function: set_tex_environment_default (<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.

get_tex_environment_default returns the TeX environment which is applied to expressions for which the top-level operator has no specific TeX environment (as assigned by set_tex_environment).

set_tex_environment_default assigns the default TeX environment.

Examples:

          (%i1) get_tex_environment_default ();
(%o1)                       [$$,$$]
(%i2) tex (f(x) + g(x));
$$g\left(x\right)+f\left(x\right)$$
(%o2)                         false
(%i3) set_tex_environment_default ("\\begin{equation}
", "
\\end{equation}");
(%o3) [\begin{equation}
,
\end{equation}]
(%i4) tex (f(x) + g(x));
\begin{equation}
g\left(x\right)+f\left(x\right)
\end{equation}
(%o4)                         false

(%o1)                                true
(%i2) 

### Related Examples

##### get_tex_environment_default-set_tex_environment_default

get_tex_environment_d...

tex (f(x) + g(x));

set_tex_environment_...

Calculate

##### get_tex_environment_default

? get_tex_environment...

Calculate

##### get_tex_environment_default-set_tex_environment_default

get_tex_environment_d...

tex (f(x) + g(x));

set_tex_environment_...

Calculate

##### get_tex_environment_default

? get_tex_environment...

Calculate 