2 <!-- ***** BEGIN LICENSE BLOCK *****
3 - Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 - The contents of this file are subject to the Mozilla Public License Version
6 - 1.1 (the "License"); you may not use this file except in compliance with
7 - the License. You may obtain a copy of the License at
8 - http://www.mozilla.org/MPL/
10 - Software distributed under the License is distributed on an "AS IS" basis,
11 - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 - for the specific language governing rights and limitations under the
15 - The Original Code is Mozilla MathML Project.
17 - The Initial Developer of the Original Code is
18 - The University of Queensland.
19 - Portions created by the Initial Developer are Copyright (C) 1999
20 - the Initial Developer. All Rights Reserved.
23 - Roger B. Sidje <rbs@maths.uq.edu.au>
25 - Alternatively, the contents of this file may be used under the terms of
26 - either the GNU General Public License Version 2 or later (the "GPL"), or
27 - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 - in which case the provisions of the GPL or the LGPL are applicable instead
29 - of those above. If you wish to allow use of your version of this file only
30 - under the terms of either the GPL or the LGPL, and not to allow others to
31 - use your version of this file under the terms of the MPL, indicate your
32 - decision by deleting the provisions above and replace them with the notice
33 - and other provisions required by the LGPL or the GPL. If you do not delete
34 - the provisions above, a recipient may use your version of this file under
35 - the terms of any one of the MPL, the GPL or the LGPL.
37 - ***** END LICENSE BLOCK ***** -->
39 "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
40 "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
42 <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
44 <html xmlns="http://www.w3.org/1999/xhtml">
47 <title>Various examples of MathML</title>
50 background-color: yellow;
53 outline: 1px dotted black;
54 /* border: 1px solid black; */
56 maction[actiontype="restyle#background"] {
57 background-color: #3C6;
58 border: 1px dotted red;
60 maction[actiontype="restyle#zoom"] {
67 Click to toggle between expressions, and watch the satus line onmouseover/onmouseout:
70 <math mode="display" xmlns="&mathml;">
71 <maction actiontype="toggle">
72 <maction actiontype="statusline#First Expression">
73 <mi>statusline#First Expression</mi>
76 <maction actiontype="statusline#Second Expression">
77 <mi>statusline#Second Expression</mi>
81 <maction actiontype="statusline#And so on..">
82 <maction actiontype="restyle#background">
83 <mi>statusline#And so on...</mi>
90 Click the expression below to zoom-in/zoom-out using RESTYLE:
93 <math mode="display" xmlns="&mathml;">
94 <maction actiontype="restyle#zoom">
99 <mo>⁢</mo>
102 <mrow><mn>1</mn><mo>-</mo><mi>i</mi></mrow>
103 <mrow><mn>1</mn><mo>+</mo><mi>i</mi></mrow>
110 Click the expression below to see several definitions of pi:
113 <math mode="display" xmlns="&mathml;">
115 <maction actiontype="toggle">
120 <mn>3.14159265358</mn><mo fontweight="bold">...</mo>
127 <mo>⁢</mo>
130 <mrow><mn>1</mn><mo>-</mo><mi>i</mi></mrow>
131 <mrow><mn>1</mn><mo>+</mo><mi>i</mi></mrow>
139 <mphantom><mo>.</mo></mphantom>
146 <mphantom><mo>.</mo></mphantom>
157 <mphantom><mo>.</mo></mphantom>
172 <mo fontweight="bold">...</mo>
182 <mstyle scriptlevel="0">
185 <mstyle scriptlevel="0">
190 <mstyle scriptlevel="0">
191 <msup><mn>1</mn><mn>2</mn></msup>
193 <mstyle scriptlevel="0">
198 <mstyle scriptlevel="0">
199 <msup><mn>3</mn><mn>2</mn></msup>
201 <mstyle scriptlevel="0">
206 <mstyle scriptlevel="0">
207 <msup><mn>5</mn><mn>2</mn></msup>
209 <mstyle scriptlevel="0">
214 <mstyle scriptlevel="0">
215 <msup><mn>7</mn><mn>2</mn></msup>
217 <mstyle scriptlevel="0">
218 <mn>2</mn><mo>+</mo><mo fontweight="bold">...</mo>
240 <math xmlns="&mathml;">
241 <!-- {{} \atop i} A {p \atop q} -->
243 <mi fontweight="bold" fontsize="large">A</mi>
251 <!-- {3 \atop k} R {1 \atop i} {2 \atop j} -->
253 <mi fontweight="bold">R</mi>
255 <mi>j</mi><mn>230</mn>
256 <mi>j</mi><msup><mn>230</mn><mi>y</mi></msup>
257 <mi>j</mi><mn>230</mn>
264 <!-- \int_a^b f(x)dx -->
279 <!-- \frac{\partial}{\partial x}F(x,y) + \frac{\partial}{\partial y}F(x,y) -->
377 <!-- {\left( \frac{1}{2} \right) }^{y^{a_x}} -->
433 <!-- d^{ \left( \frac{a}{b} \right) } -->
448 <!-- \frac{d*b^{ \left( \frac{i+j}{n!} \right) } + p_y*q}
449 {p^x*b_x + \frac{a+c}{d}} -->
501 <ms>This is a text in ms</ms>
503 <!-- x^2 + 4*x + \frac{p}{q} = 0 -->
528 <mtext>This is a text in mtext</mtext>
529 <merror>This is a text in merror</merror>
538 <mstyle scriptlevel="0">
541 <mstyle scriptlevel="0">
549 <mstyle scriptlevel="0">
552 <mstyle scriptlevel="0">
560 <mstyle scriptlevel="0">
563 <mstyle scriptlevel="0">
584 <mi>i</mi><mo>+</mo><mi>j</mi>
589 <msub><mi>a</mi><mi>i</mi></msub>
591 <msub><mi>b</mi><mi>j</mi></msub>
619 <msup><mi>d</mi><mn>2</mn></msup>
622 <msub><mi>m</mi><mn>1</mn></msub>
623 <msub><mi>m</mi><mn>2</mn></msub>
631 <mi>t</mi><mo>+=</mo><mi>dt</mi>
646 <mo stretchy="false">(</mo>
647 <mfrac linethickness="2">
667 <mstyle scriptlevel="-3">
670 <mstyle scriptlevel="1">
679 <mstyle scriptlevel="0">
685 <mstyle scriptlevel="-4">
691 <math xmlns="&mathml;" mode="display">
731 <mo stretchy='false'>(</mo>
734 <mo stretchy='false'>)</mo>
767 And this is from the "Thomson scattering theory"
769 <math xmlns="&mathml;" mode="display">
771 <mtable align='left'>
774 <mtd columnalign='left'>
802 <mtd columnalign='left'>
808 <mtd columnalign='left'>
821 <mo lspace='0'><</mo>
833 <mi fontweight='bold'>r</mi>
838 <mo lspace='0' rspace='0' symmetric='false'>|</mo>
840 <mover accent='true'>
841 <mi fontweight='bold'>e</mi>
847 <mover accent='true'>
854 <mover accent='true'>
855 <mi fontweight='bold'>e</mi>
859 <mo lspace='0' rspace='0' symmetric='false'>|</mo>
874 <mo stretchy='false'>(</mo>
875 <mi fontweight='bold'>k</mi>
877 <mi fontweight='bold'>v</mi>
880 <mo stretchy='false'>)</mo>
888 <mi fontweight='bold'>v</mi>
896 <mtd columnalign='left'>
902 <mtd columnalign='left'>
915 <mo lspace='0'><</mo>
927 <mi fontweight='bold'>r</mi>
932 <mo symmetric='false' lspace='0' rspace='0'>|</mo>
938 <mo stretchy='false'>(</mo>
941 <mover accent='true'>
942 <mi fontweight='bold'>s</mi>
946 <mover accent='true'>
947 <mi fontweight='bold'>ı</mi>
950 <mo stretchy='false'>)</mo>
954 <mo stretchy='false'>(</mo>
961 <mo stretchy='false'>)</mo>
962 <mo stretchy='false'>(</mo>
969 <mo stretchy='false'>)</mo>
979 <mo symmetric='false' lspace='0' rspace='0'>|</mo>
984 <mspace width="thinmathspace"/>
988 <mo symmetric='false' rspace='0'>|</mo>
1010 <mo symmetric='false' lspace='0' rspace='0'>|</mo>
1022 <mtd columnalign='left'>
1027 <mo stretchy='false'>(</mo>
1034 <mo stretchy='false'>)</mo>
1037 <mo> </mo>
1039 <mo> </mo>
1043 <mo stretchy='false'>(</mo>
1044 <mi fontweight='bold'>k</mi>
1046 <mi fontweight='bold'>v</mi>
1049 <mo stretchy='false'>)</mo>
1057 <mi fontweight='bold'>v</mi>