Previous Up Next

2.7.8  Configuring markup export

Export to LATEX, MathML and TeXmacs Scheme has some configuration options that can be set by using the markup_cfg command. This applies to latex and export_mathml commands as well as to TeXmacs sessions (note that mathml command does not support this configuration).

Examples

With default configuration:

latex(x*sin(x)^2)
     
x \sin ^{2}x           

which is xsin2x when typeset.

To enable only implicit multiplication, enter:

markup_cfg(simplify=product)
     
1           

Then:

latex(x*sin(x)^2)
     
x \sin \left(x\right)^{2}           

which is x sin(x)2 when typeset.

The command

markup_cfg(simplify=[product,apply],mathml=display)

enables only implicit multiplication and function application; additionally, it prevents content MathML from appearing in the output of export_mathml.


Previous Up Next