W3C home > Mailing lists > Public > www-math@w3.org > January 2007

Re: display="block" question

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 26 Jan 2007 12:08:07 GMT
Message-Id: <200701261208.l0QC87ts013739@edinburgh.nag.co.uk>
To: R.W.Kaye@bham.ac.uk
Cc: www-math@w3.org

> Here's a very small point 

or rather a normal sized full stop:-)

>  Because LaTeX
> teaches us to do this, I have been putting the punctuation
> inside the <math>...</math>, and it looks fine, but of
> course this punctuation is not part of the equation at
> all so ought not be there. My question is, where should
> it go?

Even with latex, punctuation of displayed equations can be tricky to get
right, they tend (depending on how you mark it up) to either be too
close to the mathematics, or  adversely affect the positioning of the
mathematics, or ...

If you are using presentation mathml I think it's OK to use an
<mtext>.</mtext> even though structually the mathematics is part of the
sentence so  one might argue that the xml structure ought to reflect
that and have the . outside the <math>.

It's possible to do that as well of course, something like
<div class="displaymath"><math> ...</math><span>.</span></div>
with the math here being "inline" but set in displaystyle (as far as
mathml is concerned) but positioned centrally using css, and similarly
the punctuation being placed within the display block but after the
mathematics. This keeps the math element clear of document-level
sentence punctuation, which might be especially useful if you are using
content mathml.

Received on Friday, 26 January 2007 12:08:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:38 UTC