зеркало из https://github.com/mozilla/pjs.git
[MathML] Updates and initial landing of the example mixing.xml to illustrate how to mix MathML with other markups
This commit is contained in:
Родитель
1f3415b86a
Коммит
5e1d2e2f84
|
@ -26,7 +26,7 @@ display: block;
|
||||||
|
|
||||||
math, math[mode="inline"] {
|
math, math[mode="inline"] {
|
||||||
display: inline;
|
display: inline;
|
||||||
/* font-family: Arial; */
|
/* font-family: Times; */
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
/* font-weight: bold; */
|
/* font-weight: bold; */
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
|
@ -38,7 +38,7 @@ math[mode="display"] {
|
||||||
/* font-family: Arial; */
|
/* font-family: Arial; */
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
/* font-weight: bold; */
|
/* font-weight: bold; */
|
||||||
/* font-size: 12pt; */
|
font-size: 14pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -82,7 +82,7 @@ mphantom {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mfrac {
|
mfrac {
|
||||||
background-color: blue;
|
/* background-color: blue; */
|
||||||
/* font-size: smaller */
|
/* font-size: smaller */
|
||||||
/* border: 1px solid black; */
|
/* border: 1px solid black; */
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ mtd {
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/* border-style: inset; */
|
/* border-style: inset; */
|
||||||
border-color: #c0c0c0;
|
/* border-color: #c0c0c0; */
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,112 @@
|
||||||
|
<?xml version="1.0"?>
|
||||||
|
<?xml-stylesheet href="mathml.css" type="text/css"?>
|
||||||
|
<!DOCTYPE document SYSTEM "mathml.dtd">
|
||||||
|
|
||||||
|
<document
|
||||||
|
xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||||
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||||
|
xmlns:math="http://www.w3.org/Math/MathML"
|
||||||
|
>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
* The contents of this file are subject to the Mozilla Public
|
||||||
|
* License Version 1.1 (the "License"); you may not use this file
|
||||||
|
* except in compliance with the License. You may obtain a copy of
|
||||||
|
* the License at http://www.mozilla.org/MPL/
|
||||||
|
*
|
||||||
|
* Software distributed under the License is distributed on an "AS
|
||||||
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||||
|
* implied. See the License for the specific language governing
|
||||||
|
* rights and limitations under the License.
|
||||||
|
*
|
||||||
|
* The Original Code is Mozilla MathML Project.
|
||||||
|
*
|
||||||
|
* The Initial Developer of the Original Code is The University of
|
||||||
|
* Queensland. Portions created by The University of Queensland are
|
||||||
|
* Copyright (C) The University of Queensland. All
|
||||||
|
* Rights Reserved.
|
||||||
|
*
|
||||||
|
* Contributor(s):
|
||||||
|
* Roger B. Sidje <rbs@maths.uq.edu.au>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<document>
|
||||||
|
|
||||||
|
<math>
|
||||||
|
<math:ms>Mixing MathML markups and other markups to get special effects</math:ms>
|
||||||
|
<math:mfrac linethickness="3">
|
||||||
|
<math:mfrac>
|
||||||
|
<math:mn>a</math:mn>
|
||||||
|
<html:img src="resource:/res/toolbar/TB_Back.gif"/>
|
||||||
|
</math:mfrac>
|
||||||
|
<math:mfrac>
|
||||||
|
<math:mn>b</math:mn>
|
||||||
|
<html:img src="resource:/res/toolbar/TB_Forward.gif"/>
|
||||||
|
</math:mfrac>
|
||||||
|
</math:mfrac>
|
||||||
|
</math>
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
|
||||||
|
<math>
|
||||||
|
<mo>See the difference between math:mi over an html:i (which doesn't understand the sriptlevel)</mo>
|
||||||
|
|
||||||
|
<math:mfrac>
|
||||||
|
<math:mi>a</math:mi>
|
||||||
|
<html:i>a</html:i>
|
||||||
|
</math:mfrac>
|
||||||
|
</math>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
<p/>
|
||||||
|
<xul:toolbox>
|
||||||
|
<xul:toolbar>
|
||||||
|
<html:span style="display: table-cell">
|
||||||
|
<html:button cmd="nsCmd:BrowserBack" style="background-color:rgb(192,192,192);">
|
||||||
|
<html:img src="../images/raptor.jpg"/><html:br/>Back</html:button>
|
||||||
|
</html:span>
|
||||||
|
<html:span style="display: table-cell">
|
||||||
|
<html:input style="width:325px;"></html:input>
|
||||||
|
</html:span>
|
||||||
|
</xul:toolbar>
|
||||||
|
</xul:toolbox>
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Possibly crash on the code below !
|
||||||
|
It seems that a table-cell only wants to be sole child or has only table-cell as siblings.
|
||||||
|
Bug or feature ?
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
||||||
|
<math>
|
||||||
|
<math:mfrac>
|
||||||
|
<math:mi>a</math:mi>
|
||||||
|
<html:span style="display: table-cell">
|
||||||
|
<html:button cmd="nsCmd:BrowserBack" style="background-color:rgb(192,192,192);">
|
||||||
|
<html:img src="resource:/res/toolbar/TB_Back.gif"/><html:br/>Back</html:button>
|
||||||
|
</html:span>
|
||||||
|
</math:mfrac>
|
||||||
|
</math>
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
|
||||||
|
<math>
|
||||||
|
<math:mfrac>
|
||||||
|
<html:span style="display: table-cell">
|
||||||
|
<html:button cmd="nsCmd:BrowserBack" style="background-color:rgb(192,192,192);">
|
||||||
|
<html:img src="resource:/res/toolbar/TB_Back.gif"/><html:br/>Back</html:button>
|
||||||
|
</html:span>
|
||||||
|
<math:mi>a</math:mi>
|
||||||
|
</math:mfrac>
|
||||||
|
</math>
|
||||||
|
|
||||||
|
<p/>
|
||||||
|
|
||||||
|
-->
|
||||||
|
|
||||||
|
</document>
|
|
@ -24,54 +24,58 @@
|
||||||
|
|
||||||
<math xmlns="http://www.w3.org/Math/MathML">
|
<math xmlns="http://www.w3.org/Math/MathML">
|
||||||
|
|
||||||
<mn>Testing stretchy parentheses - NOT YET IMPLEMENTED</mn>
|
<mn>Testing stretchy parentheses - NOT YET IMPLEMENTED</mn>
|
||||||
|
|
||||||
<mrow>
|
<mrow>
|
||||||
<mi>x</mi>
|
<mi>x</mi>
|
||||||
<mo>+</mo>
|
<mo>+</mo>
|
||||||
<mrow>
|
<mrow>
|
||||||
<mo>(</mo>
|
<mo>(</mo>
|
||||||
<mfrac linethickness="20">
|
<mfrac linethickness="20">
|
||||||
<mi>a</mi>
|
<mi>a</mi>
|
||||||
<mi>b</mi>
|
<mi>b</mi>
|
||||||
</mfrac>
|
</mfrac>
|
||||||
<mo stretchy="false">)</mo>
|
<mo stretchy="false">)</mo>
|
||||||
</mrow>
|
</mrow>
|
||||||
</mrow>
|
</mrow>
|
||||||
|
|
||||||
<mn>in binomial formulas</mn>
|
<mn>in binomial formulas</mn>
|
||||||
|
|
||||||
<mrow>
|
<mrow>
|
||||||
<mrow>
|
<mo>(</mo>
|
||||||
<mo>(</mo>
|
<mfrac linethickness="0">
|
||||||
<mfrac linethickness="0">
|
<mi>n</mi>
|
||||||
<mi>n</mi>
|
<mi>p</mi>
|
||||||
<mi>p</mi>
|
</mfrac>
|
||||||
</mfrac>
|
<mo>)</mo>
|
||||||
|
</mrow>
|
||||||
|
|
||||||
|
<mo>=</mo>
|
||||||
|
|
||||||
|
<mrow>
|
||||||
|
<mrow>
|
||||||
|
<mo>(</mo>
|
||||||
|
<mfrac linethickness="0">
|
||||||
|
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
|
||||||
|
<mi>p</mi>
|
||||||
|
</mfrac>
|
||||||
<mo>)</mo>
|
<mo>)</mo>
|
||||||
</mrow>
|
</mrow>
|
||||||
|
|
||||||
|
<mo>+</mo>
|
||||||
|
|
||||||
|
<mrow>
|
||||||
|
<mo>(</mo>
|
||||||
|
<mfrac linethickness="0">
|
||||||
|
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
|
||||||
|
<mrow><mi>p</mi><mo>-</mo><mn>1</mn></mrow>
|
||||||
|
</mfrac>
|
||||||
|
<mo>)</mo>
|
||||||
|
</mrow>
|
||||||
|
|
||||||
<mo>=</mo>
|
<mo>;</mo>
|
||||||
|
</mrow>
|
||||||
|
|
||||||
<mrow>
|
|
||||||
<mo>(</mo>
|
|
||||||
<mfrac linethickness="0">
|
|
||||||
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
|
|
||||||
<mi>p</mi>
|
|
||||||
</mfrac>
|
|
||||||
<mo>)</mo>
|
|
||||||
</mrow>
|
|
||||||
<mo>+</mo>
|
|
||||||
<mrow>
|
|
||||||
<mo>(</mo>
|
|
||||||
<mfrac linethickness="0">
|
|
||||||
<mrow><mi>n</mi><mo>-</mo><mn>1</mn></mrow>
|
|
||||||
<mrow><mi>p</mi><mo>-</mo><mn>1</mn></mrow>
|
|
||||||
</mfrac><mo>)
|
|
||||||
</mo></mrow>
|
|
||||||
</mrow>
|
|
||||||
|
|
||||||
<mo>;</mo>
|
|
||||||
|
|
||||||
<mrow>
|
<mrow>
|
||||||
<msup>
|
<msup>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче