[NTG-context] 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 formulamathmtablemtrmtdmfracmrowmtextAverage inventory/mtext/mrowmrowmtextCost of sales/mtext/mrow/mfracmotimes;/momspace width=0.35em/mtext365/mtext/mtdmtdmo=/mo/mtdmtdmtextaverage number of days to turn inventory into sales/mtext/mtd/mtrmtrmtdmfracmrowmtextpound;305/mtext/mrowmrowmtextpound;1,830/mtext/mrow/mfracmotimes;/momspace width=0.35em/mtext365/mtext/mtdmtdmo=/mo/mtdmtdmtext60.83 days/mtext/mtd/mtr/mtable/math/formula \stopXMLdata \stoptext I'm using mk II. Thanks very much, Duncan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupMMLappearance
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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \setupMMLappearance
Duncan Hothersall wrote: Hello MathMLers. I just discovered the very promising \setupMMLappearance command, which looked like it held the answer to one of my most niggling of problems with display MathML processing - the fact that in a tabular layout using mtable I couldn't make the left-hand-side right-aligned, the middle (equals sign) centred and the right-hand-side left-aligned. The default layout has all columns centred. So having looked through the sources I tried \setupMMLappearance[mtable][alternative=b] and to my joy the horizontal alignment seemed to be perfect. But... the vertical spacing seems to have changed as well. There is now just a bit more vertical space between the rows, which throws my existing pagination out of whack, and also looks ugly. I think I reached my limit on understanding the sources, so I wonder if someone could help by telling me if there are any other options for the magical \setupMMLappearance command which might help, or indeed any other fine-tuning commands for MathML layout. One other thing I'd really like to be able to do is have the entire equation aligned on the left rather than centred in the text flow. Is there an option for that? can you prepare a test file? Hans btw, sometime ago i rewrote the mml code in a more readable way but i could not find time to integrate it yet - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \setupMMLappearance
Hello MathMLers. I just discovered the very promising \setupMMLappearance command, which looked like it held the answer to one of my most niggling of problems with display MathML processing - the fact that in a tabular layout using mtable I couldn't make the left-hand-side right-aligned, the middle (equals sign) centred and the right-hand-side left-aligned. The default layout has all columns centred. So having looked through the sources I tried \setupMMLappearance[mtable][alternative=b] and to my joy the horizontal alignment seemed to be perfect. But... the vertical spacing seems to have changed as well. There is now just a bit more vertical space between the rows, which throws my existing pagination out of whack, and also looks ugly. I think I reached my limit on understanding the sources, so I wonder if someone could help by telling me if there are any other options for the magical \setupMMLappearance command which might help, or indeed any other fine-tuning commands for MathML layout. One other thing I'd really like to be able to do is have the entire equation aligned on the left rather than centred in the text flow. Is there an option for that? Thanks very much to anyone who can help. Duncan ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context