* 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>×</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
___________________________________________________________________________________
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
* Re: setupMMLappearance
2008-07-19 13:31 setupMMLappearance Duncan Hothersall
@ 2008-07-19 21:15 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2008-07-19 21:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ 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).