setupMMLappearance
Hello. I am used to using \setupMMLappearance[mtable][alternative=a|b|c] to change the way the mathml module treats mtable alignments. I've just discovered it no longer seems to have any effect. What I need to set up is an alignment where the first column of an mtable is right-aligned (ragged left), the second is centred, and the third is left-aligned (ragged right). But I keep getting the first column left-aligned, which makes multi-line equations look awful. Is there a new mechanism for setting these alignments? It looked like it from reading newmml, but there don't seem to be any examples of usage. Can someone help? Secondary question: how can I increase the gap between rows in an mtable - at the moment they are very squashed. Sample code follows - produces ugly output on the garden: \usemodule[newmml] \setupMMLappearance[mtable][alternative=b] \starttext \startXMLdata <formula><math><mtable><mtr><mtd><mfrac><mrow><mtext>Average inventory</mtext></mrow><mrow><mtext>Cost of sales</mtext></mrow></mfrac><mo>×</mo><mspace width="0.35em"/><mtext>365</mtext></mtd><mtd><mo>=</mo></mtd><mtd><mtext>average number of days to turn inventory into sales</mtext></mtd></mtr><mtr><mtd><mfrac><mrow><mtext>£305</mtext></mrow><mrow><mtext>£1,830</mtext></mrow></mfrac><mo>×</mo><mspace width="0.35em"/><mtext>365</mtext></mtd><mtd><mo>=</mo></mtd><mtd><mtext>60.83 days</mtext></mtd></mtr></mtable></math></formula> \stopXMLdata \stoptext I'm using mk II. Thanks very much, Duncan
Duncan Hothersall wrote:
Hello.
I am used to using \setupMMLappearance[mtable][alternative=a|b|c] to change the way the mathml module treats mtable alignments. I've just discovered it no longer seems to have any effect.
the current mathml module uses the second implementation (mkiv) or the third one (mkiv) you might want to load the xtag: xtag-mml
What I need to set up is an alignment where the first column of an mtable is right-aligned (ragged left), the second is centred, and the third is left-aligned (ragged right). But I keep getting the first column left-aligned, which makes multi-line equations look awful.
hm, the mkiv module is supposed to support the attributes in any case, just collect examples and i'll see what i can do (in principle the mkii module is frozen and i will improve the mkiv one which is just in its first incarnation and to some extend already supports mathml 3)
Is there a new mechanism for setting these alignments? It looked like it from reading newmml, but there don't seem to be any examples of usage. Can someone help?
just the setup command or attributes
Secondary question: how can I increase the gap between rows in an mtable - at the moment they are very squashed.
Sample code follows - produces ugly output on the garden:
...
I'm using mk II.
i guessed as much anyway, collect examples an di'll look into it when i'm back from the tug conference Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Duncan Hothersall
-
Hans Hagen