ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupMMLappearance
@ 2008-07-19 13:31 Duncan Hothersall
  2008-07-19 21:15 ` setupMMLappearance Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Duncan Hothersall @ 2008-07-19 13:31 UTC (permalink / raw)
  To: ntg-context

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>&times;</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>&pound;305</mtext></mrow><mrow><mtext>&pound;1,830</mtext></mrow></mfrac><mo>&times;</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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-19 21:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-19 13:31 setupMMLappearance Duncan Hothersall
2008-07-19 21:15 ` setupMMLappearance Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).