Add Maxwell Equations test case contributed by Robert Miner, and fix of some rules in mathml.css

git-svn-id: svn://10.0.0.236/trunk@57800 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rbs%maths.uq.edu.au
2000-01-14 08:25:57 +00:00
parent 6b35881936
commit 453b049104
2 changed files with 325 additions and 13 deletions

View File

@@ -26,18 +26,34 @@ display: block;
math, math[mode="inline"] {
display: inline;
font-family: Symbol, Times;
font-style: normal;
font-style: normal;
/* font-weight: bold; */
font-size: 14pt;
/* font-size: 40pt; */
}
math[mode="display"] {
display: block;
text-align: center;
font-family: Symbol, Times;
font-style: normal;
font-style: normal;
/* font-weight: bold; */
font-size: 14pt;
/* font-size: 14pt; */
}
*[fontstyle="normal"] {
font-style: normal;
}
*[fontstyle="italic"] {
font-style: italic;
}
*[fontweight="normal"] {
font-weight: normal;
}
*[fontweight="bold"] {
font-weight: bold;
}
/*
@@ -93,34 +109,44 @@ mphantom {
mfrac {
/* background-color: blue; */
/* font-size: smaller */
/* font-size: smaller */
/* border: 1px solid black; */
}
msub, msup {
/* background-color: yellow; */
/* background-color: yellow; */
/* border: 1px solid black; */
/* font-size: small; */
}
/*
mn {
border: 1px solid black;
/* border: 1px solid black; */
}
*/
mi {
color: red;
/* font-style: normal; */
/* border: 1px solid blue; */
/* background-color: yellow; */
}
mo {
/* font-style: normal; */
/* border: 1px solid black; */
/* background-color: blue; */
}
/*
munder, mover, munderover {
background-color: yellow;
border: 1px solid black;
}
*/
merror {
display: block;
font-family: sans-serif;
@@ -149,7 +175,7 @@ mtable {
/* must never set padding in td, th */
mtd {
vertical-align: inherit;
vertical-align: inherit;
background-color: inherit;
text-align: center;
/* border-style: inset; */
@@ -159,19 +185,28 @@ mtd {
mtr {
display: table-row;
vertical-align: inherit;
vertical-align: middle;
background-color: inherit;
valign: baseline;
}
:-moz-math-font-style-italic {
mi {
font-style: italic;
}
mstyle[fontstyle="normal"] mi {
font-style: normal;
}
:-moz-math-font-style-normal {
font-style: normal;
}
/*
:-moz-math-font-style-italic {
font-style: italic;
}
*/
:-moz-math-font-size-smaller {
font-size: smaller;
}

View File

@@ -0,0 +1,277 @@
<?xml version="1.0"?>
<?xml-stylesheet href="mathml.css" type="text/css"?>
<!DOCTYPE html SYSTEM "mathml.dtd"
[
<!ENTITY vec "&RightArrow;">
<!ENTITY partial "&PartialD;">
]>
<html
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.w3.org/1998/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):
* Robert Miner <rminer@geomtech.com>
-->
<html:html>
<html:head>
<html:title>Maxwell's Equations</html:title>
</html:head>
<html:body bgcolor='#ffffff'>
<html:h2>Maxwell's Equations</html:h2>
<html:center>
<math>
<mstyle displaystyle='true'>
<mrow>
<mo>&lbrace;</mo>
<mtable columnalign='right center left' equalrows='false' equalcolumns='false'>
<mtr>
<mtd>
<mrow>
<mo>&nabla;</mo>
<mo>&times;</mo>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>B</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
<mo>-</mo>
<mfrac>
<mn>1</mn>
<mi>c</mi>
</mfrac>
<mfrac>
<mrow>
<mo>&partial;</mo>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>E</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
</mrow>
<mrow>
<mo>&partial;</mo>
<mi>t</mi>
</mrow>
</mfrac>
</mrow>
</mtd>
<mtd>
<mo>=</mo>
</mtd>
<mtd>
<mrow>
<mfrac>
<mrow>
<mn>4</mn>
<mi>&pi;</mi>
</mrow>
<mi>c</mi>
</mfrac>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>j</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mo>&nabla;</mo>
<mo>&cdot;</mo>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>E</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
</mrow>
</mtd>
<mtd>
<mo>=</mo>
</mtd>
<mtd>
<mrow>
<mn>4</mn>
<mi>&pi;</mi>
<mi>&rho;</mi>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mo>&nabla;</mo>
<mo>&times;</mo>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>E</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
<mo>+</mo>
<mfrac>
<mn>1</mn>
<mi>c</mi>
</mfrac>
<mfrac>
<mrow>
<mo>&partial;</mo>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>B</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
</mrow>
<mrow>
<mo>&partial;</mo>
<mi>t</mi>
</mrow>
</mfrac>
</mrow>
</mtd>
<mtd>
<mo>=</mo>
</mtd>
<mtd>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mn>0</mn>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<mo>&nabla;</mo>
<mo>&cdot;</mo>
<munderover accent='true'>
<mstyle fontweight='bold'>
<mi>B</mi>
</mstyle>
<mrow></mrow>
<mo stretchy='true'>&vec;</mo>
</munderover>
</mrow>
</mtd>
<mtd>
<mo>=</mo>
</mtd>
<mtd>
<mn>0</mn>
</mtd>
</mtr>
</mtable>
</mrow>
</mstyle>
</math>
</html:center>
<html:h2>Einstein's field equations</html:h2>
<html:center>
<math>
<mstyle displaystyle='true'>
<mrow>
<msubsup>
<mstyle fontstyle='normal'>
<mi>R</mi>
</mstyle>
<mstyle scriptlevel='1'>
<mrow>
<mi>&mu;</mi>
<mi>&nu;</mi>
</mrow>
</mstyle>
<mrow></mrow>
</msubsup>
<mo>-</mo>
<mfrac>
<mn>1</mn>
<mn>2</mn>
</mfrac>
<msubsup>
<mi>g</mi>
<mstyle scriptlevel='1'>
<mrow>
<mi>&mu;</mi>
<mi>&nu;</mi>
</mrow>
</mstyle>
<mrow></mrow>
</msubsup>
<mstyle fontstyle='normal'>
<mi>R</mi>
</mstyle>
<mo>=</mo>
<mfrac>
<mrow>
<mn>8</mn>
<mi>&pi;</mi>
<mstyle fontstyle='normal'>
<mi>G</mi>
</mstyle>
</mrow>
<msubsup>
<mi>c</mi>
<mrow></mrow>
<mn>4</mn>
</msubsup>
</mfrac>
<msubsup>
<mstyle fontstyle='normal'>
<mi>T</mi>
</mstyle>
<mstyle scriptlevel='1'>
<mrow>
<mi>&mu;</mi>
<mi>&nu;</mi>
</mrow>
</mstyle>
<mrow></mrow>
</msubsup>
</mrow>
</mstyle>
</math>
</html:center>
</html:body>
</html:html>