From: Duncan Hothersall <dh@capdm.com>
To: ntg-context@ntg.nl
Subject: setupMMLappearance
Date: Sat, 19 Jul 2008 14:31:31 +0100 [thread overview]
Message-ID: <4881ECB3.4050805@capdm.com> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2008-07-19 13:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-19 13:31 Duncan Hothersall [this message]
2008-07-19 21:15 ` setupMMLappearance Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4881ECB3.4050805@capdm.com \
--to=dh@capdm.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).