These are some notes on things missing in ConTeXt math support

• In
```\startformula \startalign[m=2,distance=...]
```

there is no way to divide the space equally between left, middle, and right sides.

• Why do we have
```\predisplaypenalty     = \zerocount
```

in core-mat.tex? Plain TeX defaults to 10,000. A zero value leads to orphan equations.

• Pr has wrong limits.
```\startformula
\Pr^g(x)
\stopformula
```

This is also wrong in plain tex.

• Splitting of equations across pages should be configurable. Right now either you can make the equation split anywhere, or not split at all. There needs to be some way of specifying what are "good" places to split across a page. This can be done by adding a penalty inside a \noalign after each \cr in \halign, and let a macro configure the amount of penalty.
• The current math alignment macros do not take care of proper placement of equation numbers. Equation number just get placed at the beginning or end of the line, without checking if there is space in the line or not. Maybe the only correct way to do this is following what amsmath does: use a two pass mechanism, the first pass measures the width of each line, and the second pass places the formula. (See the placecontent macros used in tabulations)
• Correct the dostartmathmatrix macro.
• Support a configuration for limits or nolimits in front of int and relatives.
• Change the unicode characters for double integral and colonsim
• Should startsubstack have cramped style?

Zsh completion

Below is quick zsh completion script for texexec. You must be using zsh to use this file. Save the file somewehre, and add source <filename> in your .zshrc.

``` texexec_completer() {
local expl

_description files expl 'TeX File'
_files "\$expl[@]" -g '*.tex'

_arguments -s : \
'--check[check versions]' \
'--figures[generate overview of figures]' \
'--listing[list of file content]' \
'--make[make formats]' \
'--modules[generate module documentation]' \
'(--mpgraphic --mpstatic)'{--mpgraphic,--mpstatic}'[process mp file to stand-alone graphics]' \
'--mptex[process mp file]' \
'--mpxtex[process mpx file]' \
'(--pdfarrange --pdfcombine --pdfcopy --pdfselect --pdfsplit --pdftrim)'{--pdfarrange,--pdfcombine,--pdfcopy,--pdfselect,--pdfsplit,--pdftrim}'[post porcess a pdf file]' \
'--process[process file]' \
'--help[produce a summary of all switches and arguments]' \
'(--alpha --beta)'{--alpha,--beta}'[run test release of ConTeXt]' \
'(--arrange --noarrange)'{--arrange,--noarrange}'[process and arrange]' \
'(--automprun,--nomprun)'{--automprun,--nomprun}'[intermediate MP run]' \
'(--batchmode --nonstopmode --nompmode --silendmode)'{--batchmode,--nonstopmode,--nompmode,--silentmode}'[Modes]' \
'(--keep,--purge,--purgeall)'{--purge,--purgeall,--keep}'[temporary file handling]' \
'(--pdftex --luatex --xetex)'{--pdftex,--luatex,--xetex}'[TeX engine]' \
'--color[enable color (when not yet enabled)]' \
'(--once --simplerun)'{--once,--simplerun} \
'--verbose[Give detailed information]' \
'--final[add a final run without skipping]' \
'(--centerpage --markings --mkii --paranoid --pretty --screensaver --texutil --utfbom --xpdf --combine --draft --fast --fastdisabled --forcempy--forcetexutil--forcexml --fullscreen --local --alone--nobackend--nobanner--noctx--noduplex--nomapfiles--notparanoid)'{--centerpage,--markings,--mkii,--paranoid,--pretty,--screensaver,--texutil,--utfbom,--xpdf,--combine,--draft,--fast,--fastdisabled,--forcempy,--forcetexutil,--forcexml,--fullscreen,--local,--alone,--nobackend,--nobanner,--noctx,--noduplex,--nomapfiles,--notparanoid}
}

compdef texexec_completer texexec
```

This is what the output looks like, after pressing <tab> after texexec.