W3C home > Mailing lists > Public > www-math@w3.org > March 2006

RE: Inline equations

From: Robert Miner <robertm@dessci.com>
Date: Mon, 13 Mar 2006 08:27:42 -0800
Message-ID: <D1EFB337111B674B8F1BE155B01C6DD6BC5D6F@franklin.corp.dessci>
To: "Dario.tambone" <dario.tambone@email.it>, <www-math@w3.org>


One more detail about MathPlayer.  MathPlayer at this point can only
access the CSS properties color, background, font-family, font-size and
display at the <math> node.  It can't see any other properties, or
properties set at nodes within the MathML.

The inline/block issue is certainly a problem, in large part because
Mozilla chose to implement automatic centering as a side effect of
setting this property, so we matched their implementationin MathPlayer
since to not do so would have been worse.  As a consequence, the only
way to get displaystyle layout on an inline equation is to put in a
wrapper mstyle element:

<math><mstyle displaystyle="true">...</mstyle></math>

Note, you can arrange to have MathType leave the display="block" off the
<math> element by checking "inline equation" on the Format menu.


Robert Miner
Director, New Product Development

- our address has changed -
Design Science, Inc.
140 Pine Avenue, 4th Floor
Long Beach, California  90802
Tel:  (651) 223-2883
Fax:  (651) 292-0014
~ Makers of MathType, MathFlow, MathPlayer, WebEQ, Equation Editor,
TexAide ~

-----Original Message-----
From: www-math-request@w3.org [mailto:www-math-request@w3.org] On Behalf
Of Dario.tambone
Sent: Monday, March 13, 2006 5:25 AM
To: www-math@w3.org
Subject: Inline equations

I've noticed that when I paste a mathml expression converted by MathType
in a web page, sometimes there is the words "display='block'" in the
<math> tag at the beginning of the expression; this causes the equation
been centered in the page (like a <p align="center">). I don't want this
behaviour, so generally I delete that words (when I want the equation as
an "inline equation"). In this case, the equation is displayed
(rendered) "smaller" than a normal expression.
Now, in some cases I've found the tag <mstyle displaystyle='true'>, this
makes the equation rendered at its normal size (or I think so...). I'm
trying to insert this style tag in the css associated with the page, but
I don't know how to do...
I'm trying this:

math {mstyle-displaystyle: true;}

or something similar, but it doesn't seem to work. How have I to declare
it in the css?
Many thanks.

Email.it, the professional e-mail, gratis per te: clicca qui

Credito: cerca il tuo credito in modo rapido e sicuro!
Clicca qui <http://adv.email.it/cgi-bin/foclick.cgi?mid=4588&d=20060313>
Received on Monday, 13 March 2006 16:27:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:58 GMT