Added some maction examples
git-svn-id: svn://10.0.0.236/trunk@59989 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -28,7 +28,7 @@ math, math[mode="inline"] {
|
||||
font-family: Symbol, Times;
|
||||
font-style: normal;
|
||||
/* font-weight: bold; */
|
||||
/* font-size: 40pt; */
|
||||
/* font-size: 24pt; */
|
||||
}
|
||||
|
||||
math[mode="display"] {
|
||||
@@ -40,32 +40,71 @@ math[mode="display"] {
|
||||
/* font-size: 14pt; */
|
||||
}
|
||||
|
||||
*[fontstyle="normal"] {
|
||||
[bgcolor="yellow"] {
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
[fontstyle="normal"] {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
*[fontstyle="italic"] {
|
||||
[fontstyle="italic"] {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
*[fontweight="normal"] {
|
||||
[fontweight="normal"] {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
*[fontweight="bold"] {
|
||||
[fontweight="bold"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
[fontsize="xx-small"] {
|
||||
font-size: xx-small;
|
||||
}
|
||||
|
||||
[fontsize="x-small"] {
|
||||
font-size: x-small;
|
||||
}
|
||||
|
||||
[fontsize="small"], [fontsize="smaller"] {
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
[fontsize="medium"] {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
[fontsize="large"] {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
[fontsize="larger"] {
|
||||
font-size: larger;
|
||||
}
|
||||
|
||||
[fontsize="x-large"] {
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
[fontsize="xx-large"] {
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
mmultiscripts {
|
||||
background-color: yellow;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
mtext {
|
||||
color: purple;
|
||||
border: 1px solid purple;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
mstyle {
|
||||
@@ -76,6 +115,10 @@ mstyle {
|
||||
|
||||
ms {
|
||||
color: blue;
|
||||
/*
|
||||
background-color: yellow;
|
||||
border: 1px solid black;
|
||||
*/
|
||||
}
|
||||
|
||||
ms:before {
|
||||
@@ -86,6 +129,14 @@ ms:after {
|
||||
content: close-quote;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
mpadded {
|
||||
background-color: yellow;
|
||||
border: 1px solid black;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
mspace {
|
||||
}
|
||||
@@ -115,11 +166,10 @@ mfrac {
|
||||
|
||||
msub, msup {
|
||||
/* background-color: yellow; */
|
||||
/* border: 1px solid black; */
|
||||
/* border: 1px dotted black; */
|
||||
/* font-size: small; */
|
||||
}
|
||||
|
||||
|
||||
mn {
|
||||
/* border: 1px solid black; */
|
||||
}
|
||||
@@ -128,7 +178,7 @@ mn {
|
||||
mi {
|
||||
color: red;
|
||||
/* font-style: normal; */
|
||||
/* border: 1px solid blue; */
|
||||
/* border: 1px dashed green;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
|
||||
@@ -147,6 +197,27 @@ munder, mover, munderover {
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
maction:focus {
|
||||
outline: thick solid black;
|
||||
border: 1px solid black;
|
||||
}
|
||||
*/
|
||||
|
||||
maction {
|
||||
background-color: yellow;
|
||||
/* border: 1px solid black; */
|
||||
}
|
||||
|
||||
maction[actiontype="restyle#background"] {
|
||||
background-color: #3C6;
|
||||
border: 1px dotted red;
|
||||
}
|
||||
|
||||
maction[actiontype="restyle#zoom"] {
|
||||
font-size: 40pt;
|
||||
}
|
||||
|
||||
merror {
|
||||
display: block;
|
||||
font-family: sans-serif;
|
||||
@@ -185,7 +256,7 @@ mtd {
|
||||
|
||||
mtr {
|
||||
display: table-row;
|
||||
vertical-align: middle;
|
||||
vertical-align: middle; /* baseline; */
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,23 +25,203 @@
|
||||
|
||||
<para>
|
||||
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<!-- {3 \atop k} R {1 \atop i} {2 \atop j} -->
|
||||
<mmultiscripts>
|
||||
<mi>R</mi>
|
||||
<mi>i</mi><mi>1</mi>
|
||||
<mi>j</mi><mi>2</mi>
|
||||
<mprescripts/>
|
||||
<mi>k</mi><mi>3</mi>
|
||||
</mmultiscripts>
|
||||
Click to toggle between expressions, and watch the satus line onmouseover/onmouseout:
|
||||
<p/>
|
||||
|
||||
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<maction actiontype="toggle">
|
||||
<maction actiontype="statusline#First Expression">
|
||||
<mi>statusline#First Expression</mi>
|
||||
</maction>
|
||||
|
||||
<maction actiontype="statusline#Second Expression">
|
||||
<mi>statusline#Second Expression</mi>
|
||||
</maction>
|
||||
|
||||
|
||||
<maction actiontype="statusline#And so on..">
|
||||
<maction actiontype="restyle#background">
|
||||
<mi>statusline#And so on...</mi>
|
||||
</maction>
|
||||
</maction>
|
||||
</maction>
|
||||
</math>
|
||||
|
||||
<p/>
|
||||
Click the expression below to zoom-in/zoom-out using RESTYLE:
|
||||
<p/>
|
||||
|
||||
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<maction actiontype="restyle#zoom">
|
||||
<mrow>
|
||||
<mi>π</mi>
|
||||
<mo>=</mo>
|
||||
<mn>2</mn><mi>i</mi>
|
||||
<mo>⁢</mo>
|
||||
<mo>Log</mo>
|
||||
<mfrac>
|
||||
<mrow><mn>1</mn><mo>-</mo><mi>i</mi></mrow>
|
||||
<mrow><mn>1</mn><mo>+</mo><mi>i</mi></mrow>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</maction>
|
||||
</math>
|
||||
|
||||
<p/>
|
||||
Click the expression below to see several definitions of pi:
|
||||
<p/>
|
||||
|
||||
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mrow>
|
||||
<maction actiontype="toggle">
|
||||
|
||||
<mrow>
|
||||
<mi>π</mi>
|
||||
<mo>=</mo>
|
||||
<mn>3.14159265358</mn><mo fontweight="bold">...</mo>
|
||||
</mrow>
|
||||
|
||||
<mrow>
|
||||
<mi>π</mi>
|
||||
<mo>=</mo>
|
||||
<mn>2</mn><mi>i</mi>
|
||||
<mo>⁢</mo>
|
||||
<mo>Log</mo>
|
||||
<mfrac>
|
||||
<mrow><mn>1</mn><mo>-</mo><mi>i</mi></mrow>
|
||||
<mrow><mn>1</mn><mo>+</mo><mi>i</mi></mrow>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
|
||||
<mrow>
|
||||
<mi>π</mi>
|
||||
<mo>=</mo>
|
||||
<mn>2</mn>
|
||||
<mphantom><mo>.</mo></mphantom>
|
||||
<mfrac>
|
||||
<mn>2</mn>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
</msqrt>
|
||||
</mfrac>
|
||||
<mphantom><mo>.</mo></mphantom>
|
||||
<mfrac>
|
||||
<mn>2</mn>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
</msqrt>
|
||||
</msqrt>
|
||||
</mfrac>
|
||||
<mphantom><mo>.</mo></mphantom>
|
||||
<mfrac>
|
||||
<mn>2</mn>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<msqrt>
|
||||
<mn>2</mn>
|
||||
</msqrt>
|
||||
</msqrt>
|
||||
</msqrt>
|
||||
</mfrac>
|
||||
<mo fontweight="bold">...</mo>
|
||||
</mrow>
|
||||
|
||||
<mrow>
|
||||
<mfrac>
|
||||
<mi>π</mi>
|
||||
<mn>4</mn>
|
||||
</mfrac>
|
||||
<mo>=</mo>
|
||||
<mfrac>
|
||||
<mstyle scriptlevel="0">
|
||||
<mn>1</mn>
|
||||
</mstyle>
|
||||
<mstyle scriptlevel="0">
|
||||
<mrow>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<mfrac>
|
||||
<mstyle scriptlevel="0">
|
||||
<msup><mn>1</mn><mn>2</mn></msup>
|
||||
</mstyle>
|
||||
<mstyle scriptlevel="0">
|
||||
<mrow>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<mfrac>
|
||||
<mstyle scriptlevel="0">
|
||||
<msup><mn>3</mn><mn>2</mn></msup>
|
||||
</mstyle>
|
||||
<mstyle scriptlevel="0">
|
||||
<mrow>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<mfrac>
|
||||
<mstyle scriptlevel="0">
|
||||
<msup><mn>5</mn><mn>2</mn></msup>
|
||||
</mstyle>
|
||||
<mstyle scriptlevel="0">
|
||||
<mrow>
|
||||
<mn>2</mn>
|
||||
<mo>+</mo>
|
||||
<mfrac>
|
||||
<mstyle scriptlevel="0">
|
||||
<msup><mn>7</mn><mn>2</mn></msup>
|
||||
</mstyle>
|
||||
<mstyle scriptlevel="0">
|
||||
<mn>2</mn><mo>+</mo><mo fontweight="bold">...</mo>
|
||||
</mstyle>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</mstyle>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</mstyle>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</mstyle>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</mstyle>
|
||||
</mfrac>
|
||||
</mrow>
|
||||
</maction>
|
||||
</mrow>
|
||||
</math>
|
||||
|
||||
<p/>
|
||||
|
||||
<math xmlns="http://www.w3.org/1998/Math/MathML">
|
||||
<mn fontweight="bold" fontsize="large">A</mn>
|
||||
<!-- {{} \atop i} A {p \atop q} -->
|
||||
<mmultiscripts>
|
||||
<mi>A</mi>
|
||||
<mi fontweight="bold" fontsize="large">A</mi>
|
||||
<mi>q</mi><mi>p</mi>
|
||||
<mprescripts/>
|
||||
<mi>i</mi><none/>
|
||||
</mmultiscripts>
|
||||
<!--
|
||||
<msub><mi>a</mi><mi fontsize="large" bgcolor="yellow">q</mi></msub>
|
||||
-->
|
||||
<!-- {3 \atop k} R {1 \atop i} {2 \atop j} -->
|
||||
<mmultiscripts>
|
||||
<mi fontweight="bold">R</mi>
|
||||
<mi>i</mi><mi>1</mi>
|
||||
<mi>j</mi><mn>230</mn>
|
||||
<mi>j</mi><msup><mn>230</mn><mi>y</mi></msup>
|
||||
<mi>j</mi><mn>230</mn>
|
||||
<mprescripts/>
|
||||
<mi>k</mi><mi>3</mi>
|
||||
<mi>k</mi><mi>3</mi>
|
||||
</mmultiscripts>
|
||||
|
||||
|
||||
<!-- \int_a^b f(x)dx -->
|
||||
<msubsup>
|
||||
|
||||
Reference in New Issue
Block a user