Re: display="block" question

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

David

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