Open main menu

Changes

no edit summary
|}
= Integrals and Sums, products, integrals= == Sums with {{cmd|sum}} ==
<context source="yes">
\setupbodyfont[16pt14pt]
\framed[frame=off,align=normal]{%
\dm{\sum_{k = 0}^{j + n} a_k = e^{a + b - c}} \blank[small]
\m{\sum_{k = 0}^{j + n} a_k = e^{a + b - c}} \blank[small]
\dm{\sum_{k = 0}^{j + n} a_k = e^{a + b - c}}}</context> == Products with {{cmd|prod}} == <context source="yes">\setupbodyfont[14pt]\framed[frame=off,align=normal]{% \m{\prod_{i=a}^{b} f(i)} \blank[small]\dm{\prod_{i=a}^{b} f(i)}}</context> ==Integrals with {{cmd|int}} == <context source="yes">\setupbodyfont[14pt]\framed[frame=off,align=normal]{% \m{\int_a^b f(x) \dd x } \blank[small] \dm{\int_a^b f(x) \dd x } \mblank[small] \setupmathematics[differentiald=upright]\dm{\int_a^b f(x) \dd x } \blank[small] }
</context>
|{{cmd|Omega}}||<context>$\Omega$</context>
|}
 
 
=Subscript and superscript=
= Spacing=
 
TeX handles math spacing by breaking a formula into parts, and assigning each of those parts a role such as 'Ord' (a variable or number) or 'Rel' (equality, larger than, et cetera). For each combination of roles, it then looks up the spacing appropriate between them in a table. These are the roles:
 
{| class=wikitable
| Ord || e.g. ''4'' or ''a'' or ''x<sup>2</sup>''
|-
| Op || Unary operators such as ''sin'' or ''ln''.
|-
| Bin || Binary operators such as '+'
|-
| Rel || Relationships such as '=' or '>' or '\implies'
|-
| Open || open brackets of any kind
|-
| Close || closing brackets of any kind
|-
| Punct || Punctuation: digit separators like '.' or ','.
|-
| Inner || Fractions are inner. What else is inner?
|-
|}
 
To set up e.g. the spacing between ordinal items, do as follows (since dec 2012):
 
\startsetups math:morespacing
\ordordspacing\textstyle 1mu plus .5mu minus .25mu\relax
\stopsetups
 
\setupmathematics
[setups=math:morespacing]
[[Category:Math]]
1,005

edits