MathMl

Oxygen general issues.
frauborinski
Posts: 8
Joined: Wed Jan 09, 2013 3:30 pm

MathMl

Post by frauborinski »

Hello,

i have an Element <Gleichung> with 1 or ∞ <math> Elements. In Author mode I want to show each of them as a block:

In the CSS it looks like this:

Code: Select all


Gleichung > mml|math

{
 display:block !important;

margin-top:0.7em;
}


mml|math mml|*

{
 display:inline !important;
}
If I open the equation in Author mode with in Mathflow Style Editor a second math element appears in between the first one.
Example before I open the equation:

Code: Select all


<Gleichung Nummerierung="false">
	
<math xmlns="http://www.w3.org/1998/Math/MathML">

<msup>

<mi>x</mi>

<mn>4</mn>

</msup>

</math>

</Gleichung>
example after I open the equation:

Code: Select all


<Gleichung Nummerierung="false">
	
<math xmlns="http://www.w3.org/1998/Math/MathML">

<math>

<msup>

<mi>x</mi>

<mn>4</mn>

</msup>

</math>

</math>

</Gleichung>
When I disable Mathflow, it is OK,
when I disable display:block in CSS it works

I use:
Oxygen 16
Mathflow 2.0b style
Mac, Windows
my own framework with extra mathml (although mathml is part of oxygen’s frameworks).


Any help is greatly appreciated
Ulrike Borinski
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: MathMl

Post by Radu »

Hi Ulrike,

Right now it is quite important in order to properly display mathml equations to have inline style specified on the <mathml> element. So changing it's display style to block will lead to the problems you encountered.

I found the following workaround, to add a static line break after each equation:

Code: Select all


Gleichung > mml|math:after{
content:"\A";
}
Would this workaround be enough for your needs?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
frauborinski
Posts: 8
Joined: Wed Jan 09, 2013 3:30 pm

Re: MathMl

Post by frauborinski »

This is very very VERY good.

Thanks a lot
Ulrike
Post Reply