зеркало из https://github.com/mozilla/pjs.git
194 строки
5.2 KiB
XML
194 строки
5.2 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
* 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) 1999 The University of Queensland. All
|
|
* Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
* Roger B. Sidje <rbs@maths.uq.edu.au>
|
|
-->
|
|
|
|
<para>
|
|
|
|
Testing MathML msub:
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<!-- a_b -->
|
|
<math:msub>
|
|
<math:mi>a</math:mi>
|
|
<math:mi>b</math:mi>
|
|
</math:msub>
|
|
</math>
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<!-- a_i -->
|
|
<math:msub>
|
|
<math:mi>a</math:mi>
|
|
<math:mi>i</math:mi>
|
|
</math:msub>
|
|
</math>
|
|
|
|
Testing MathML msup:
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<!-- d^b -->
|
|
<math:msup>
|
|
<math:mi>d</math:mi>
|
|
<math:mi>b</math:mi>
|
|
</math:msup>
|
|
|
|
<!-- 2^{a_x} -->
|
|
<math:msup>
|
|
<math:mn>2</math:mn>
|
|
<math:msub>
|
|
<math:mn>a</math:mn>
|
|
<math:mi>x</math:mi>
|
|
</math:msub>
|
|
</math:msup>
|
|
|
|
<!-- 2^{2^x} -->
|
|
<math:msup>
|
|
<math:msup>
|
|
<math:mn>2</math:mn>
|
|
<math:mn>2</math:mn>
|
|
</math:msup>
|
|
<math:mi>x</math:mi>
|
|
</math:msup>
|
|
|
|
<!-- 2^{y^{a_x}} -->
|
|
<math:msup>
|
|
<math:mn>2</math:mn>
|
|
<math:msup>
|
|
<math:mn>y</math:mn>
|
|
<math:msub>
|
|
<math:mi>a</math:mi>
|
|
<math:mi>x</math:mi>
|
|
</math:msub></math:msup>
|
|
</math:msup>
|
|
</math>
|
|
|
|
Testing MathML mrow:
|
|
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<!-- d^{a/b} -->
|
|
<math:msup>
|
|
<math:mi>d</math:mi>
|
|
<math:mrow>
|
|
<math:mo>(</math:mo>
|
|
<math:mfrac>
|
|
<math:mi>a</math:mi>
|
|
<math:mi>b</math:mi>
|
|
</math:mfrac>
|
|
<math:mo>)</math:mo>
|
|
</math:mrow>
|
|
</math:msup>
|
|
</math>
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<!-- x^2 + 4*x + 4 / \frac{p}{q} = 0 -->
|
|
<math:mrow>
|
|
<math:mrow>
|
|
<math:msup>
|
|
<math:mi>x</math:mi>
|
|
<math:mn>2</math:mn>
|
|
</math:msup>
|
|
<math:mo> + </math:mo>
|
|
<math:mrow>
|
|
<math:mn>4</math:mn>
|
|
<math:mo>*</math:mo>
|
|
<math:mi>x</math:mi>
|
|
</math:mrow>
|
|
<math:mo> + </math:mo>
|
|
<math:mn>4</math:mn>
|
|
<math:mo>/</math:mo>
|
|
<math:mfrac>
|
|
<math:mi>p</math:mi>
|
|
<math:mi>q</math:mi>
|
|
</math:mfrac>
|
|
</math:mrow>
|
|
<math:mo> = </math:mo>
|
|
<math:mn>0</math:mn>
|
|
</math:mrow>
|
|
</math>
|
|
|
|
and then piling fractions with a user-defined line thickness...
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac linethickness="2">
|
|
<math:mfrac>
|
|
<math:mi>alpha</math:mi>
|
|
<math:mi>a</math:mi>
|
|
</math:mfrac>
|
|
<math:mfrac>
|
|
<math:mi>beta</math:mi>
|
|
<math:mi>b</math:mi>
|
|
</math:mfrac>
|
|
</math:mfrac>
|
|
</math>
|
|
|
|
<!--
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac>cdefghijkl
|
|
d</math:mfrac>
|
|
</math>
|
|
-->
|
|
|
|
<!--
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac><math:mi>Hello</math:mi><math:mi>World!</math:mi></math:mfrac>
|
|
</math>
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac><math:mi>a</math:mi><math:msup><math:mi>b</math:mi><math:mi>x</math:mi></math:msup></math:mfrac>
|
|
<math:mi> + </math:mi>
|
|
<math:mfrac><math:mi>c</math:mi><math:mi>d</math:mi></math:mfrac>
|
|
</math>
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac>c
|
|
d</math:mfrac>
|
|
</math>
|
|
|
|
and then piling fractions...
|
|
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac linethickness="2"><math:mfrac><math:mi>alpha</math:mi><math:mi>a</math:mi></math:mfrac><math:mfrac><math:mi>beta</math:mi><math:mi>b</math:mi></math:mfrac></math:mfrac>
|
|
</math>
|
|
|
|
... getting better, but still a lot to do. The lizard needs to graduate!
|
|
|
|
-->
|
|
, with this mfrac hanging here
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<!-- \frac{d*b^{\frac{x+y}{z}} + p_y*q}
|
|
{p^x*b_x + \frac{a+c}{d}} -->
|
|
<math:mfrac><math:mrow><math:mi>d</math:mi><math:mo>*</math:mo><math:msup><math:mi>b</math:mi><math:mrow><math:mo>(</math:mo><math:mfrac><math:mi>x + y</math:mi><math:mi>z</math:mi></math:mfrac><math:mo>)</math:mo></math:mrow></math:msup>
|
|
<math:mo> + </math:mo><math:msub><math:mi>p</math:mi><math:mi>y</math:mi></math:msub><math:mo>*</math:mo><math:mi>q</math:mi></math:mrow><math:mrow><math:msup><math:mi>p</math:mi><math:mi>x</math:mi></math:msup><math:mo>*</math:mo><math:msub><math:mi>b</math:mi><math:mi>x</math:mi></math:msub><math:mo> + </math:mo><math:mfrac><math:mrow><math:mi>a</math:mi><math:mo> + </math:mo><math:mi>c</math:mi></math:mrow><math:mi>d</math:mi></math:mfrac></math:mrow></math:mfrac>
|
|
</math>
|
|
|
|
in the middle of a lot of running text to try to explain what this means to those who care
|
|
to read.
|
|
</para>
|
|
|
|
<!--
|
|
<para>
|
|
The lizard should do better than only fractions!
|
|
<math xmlns:math="http://www.w3.org/Math/MathML">
|
|
<math:mfrac><math:mi>b*b + /- 4ac</math:mi><math:mi>2a</math:mi></math:mfrac>
|
|
</math>
|
|
</para>
|
|
-->
|