Re: line break

 


   Hi.

   > Is there a way to avoid line-breaking inside an <math> </math> tag ?
   > Css ?  Clearly, it is not welcome that a formula breaks in two lines
   > when not wanted.  (i may use style="display : block", but i don't want
   > line-breaking before and after the formula as well).

   As far as I know, there is no reasonable way to do this with MathML
   markup.  It's curious that no one has identified this omission before;
   clearly it should be addressed at some point.

   --Robert

I agree with Robert that this is a gap at the level of the language specification
however there is a current practical workaround for common rendering
engines at least.

In internet explorer the behavior interface doesn't really let the math
expression take part in the linebreaking of the outer paragraph, so
the formula will not break anyway.

Mozilla does break inline math but only at the outer level of mrow
nesting, so if you wrap your formula in an mrow it won't break. (This is
actually the same rule as TeX, which does not break any expression
inside {...}). The MathML spec suggests that level of mrow nesting can
be used as a hint to the renderer on the desirability of line breaking,
but stresses that linebreaking is implementation-defined, so both of
these behaviours are compatible with the specification.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Received on Wednesday, 16 April 2003 11:50:23 UTC