Typesetting mathematics

math-level0
(index level)

The index level increases inside certain mathematical constructs such as indices and fractions. When the index level is high, formulas are rendered in a smaller font. Nevertheless, index levels higher than 2 are all rendered in the same way as index level 2; this ensures that formulas like

x =
1 +
1
x + ⅇx
1 +
1
x +
1
x

remain readable. The index level may be manually changed in FormatIndex level, so as to produce formulas like

xyz

x<rsup|<with|math-level|0|y<rsup|<with|math-level|0|z>>>>

math-displayfalse
(display style)

This environement variable controls whether we are in display style or not. Formulas which occur on separate lines like

n
H1,…,αn)
=
1
α1
+ ⋯ +
1
αn

are usually typeset in display style, contrary to inline formulas like

n
H1,…,αn)
=
1
α1
+ ⋯ +
1
αn
. As you notice, formulas in display style are rendered using a wider spacing. The display style is disabled in several mathematical constructs such as scripts, fractions, binomial coefficients, and so on. As a result, the double numerators in the formula

H1 ,…,α n ) =
n
1
α1
+ ⋯ +
1
αn

are typeset in a smaller font. You may override the default settings using FormatDisplay style.

math-condensedfalse
(condensed display style)

By default, formulas like a + ⋯ + z are typeset using a nice, wide spacing around the + symbol. In formulas with scripts like ⅇa + ⋯ + z + ⅇα + ⋯ + ζ the readability is further enhanced by using a more condensed spacing inside the scripts: this helps the reader to distinguish symbols occurring in the scripts from symbols occurring at the ground level when the scripts are long. The default behaviour can be overridden using FormatCondensed.

math-vpos0
(position in fractions)

For a high quality typesetting of fraction, it is good to avoid subscripts in numerators to descend to low and superscripts in denominators to ascend to high. TeXmacs therefore provides an additional environment variable math-vpos which takes the value 1 inside numerators, −1 inside denominators and 0 otherwise. In order to see the effect the different settings, consider the following formula:

a
2
−1
+ a
2
0
+ a
2
1

<with|math-vpos|-1|<group|a

2
−1
>>+<with|math-vpos|0|<group|a
2
0
>>+<with|math-vpos|1|<group|a
2
1
>>

In this example, the grouping is necessary in order to let the different vertical positions take effect on each a

2
i
. Indeed, the vertical position is uniform for each horizontal concatenation.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".