Examples to illustrate the newly added support of stretchy MathML symbols

This commit is contained in:
rbs%maths.uq.edu.au 1999-11-17 00:55:32 +00:00
parent 2062b04715
commit f3636f0f37
2 changed files with 207 additions and 10 deletions

View File

@ -19,14 +19,13 @@
* Roger B. Sidje <rbs@maths.uq.edu.au>
*/
p :
{
p {
display: block;
}
math, math[mode="inline"] {
display: inline;
/* font-family: Times; */
font-family: Symbol, Times;
font-style: normal;
/* font-weight: bold; */
font-size: 14pt;
@ -35,7 +34,7 @@ math, math[mode="inline"] {
math[mode="display"] {
display: block;
text-align: center;
/* font-family: Arial; */
font-family: Symbol, Times;
font-style: normal;
/* font-weight: bold; */
font-size: 14pt;
@ -52,6 +51,13 @@ mtext {
border: 1px solid purple;
}
/*
mstyle {
background-color: yellow;
border: 1px solid black;
}
*/
ms {
color: blue;
}
@ -70,12 +76,16 @@ mspace {
*/
/*
mrow {
border: 1px solid black;
font-style: italic;
msqrt {
border: 1px solid red;
}
*/
mrow {
/* border: 1px solid black; */
/* font-style: italic; */
}
/*
mphantom {
}
@ -95,6 +105,7 @@ msub, msup {
/*
mn {
border: 1px solid black;
}
*/

View File

@ -1,5 +1,6 @@
<?xml version="1.0"?>
<?xml-stylesheet href="mathml.css" type="text/css"?>
<!DOCTYPE math SYSTEM "mathml.dtd">
<!--
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
@ -24,22 +25,43 @@
<math xmlns="http://www.w3.org/Math/MathML">
<mn>Testing stretchy parentheses - NOT YET IMPLEMENTED</mn>
<mn>Testing stretchy symbols -- view the source...</mn>
<mrow>
<mi>A</mi>
<mo>=</mo>
<mrow>
<mo>[</mo>
<mtable>
<mtr>
<mtd><mi>x</mi></mtd>
<mtd><mi>y</mi></mtd>
</mtr>
<mtr>
<mtd><mi>z</mi></mtd>
<mtd><mi>w</mi></mtd>
</mtr>
</mtable>
<mo>]</mo>
</mrow>
</mrow>
<mo>;</mo>
<mrow>
<mi>x</mi>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac linethickness="20">
<mfrac linethickness="30">
<mi>a</mi>
<mi>b</mi>
</mfrac>
<mo stretchy="false">)</mo>
</mrow>
</mrow>
<mo>;</mo>
<mn>in binomial formulas</mn>
in binomial formulas
<mrow>
<mo>(</mo>
@ -147,4 +169,168 @@
</msup>
</mrow>
and elsewhere,
<mrow>
<mo>{</mo>
<mrow>
<msub>
<mi>a</mi>
<mn>0</mn>
</msub>
<mo>+</mo>
<mfrac>
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<msub>
<mi>a</mi>
<mn>1</mn>
</msub>
<mo>+</mo>
<mfrac>
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<mrow>
<msub>
<mi>a</mi>
<mn>2</mn>
</msub>
<mo>+</mo>
<mfrac>
<mstyle scriptlevel="0">
<mn>1</mn>
</mstyle>
<mstyle scriptlevel="0">
<msub>
<mi>a</mi>
<mn>3</mn>
</msub>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mstyle>
</mfrac>
</mrow>
</mrow>
<mo>;</mo>
<mover>
<mrow> <mi>a</mi> <mo>+</mo> <mi>b</mi> </mrow>
<mo>&#x2190;</mo>
</mover>
<mo>;</mo>
<munder>
<mrow> <mi>b</mi> <mo>+</mo> <mi>c</mi> <mo>+</mo> <mi>d</mi></mrow>
<mo form="infix">&RightArrow;</mo>
</munder>
<mo>;</mo>
<munderover>
<mrow> <mi>a</mi> <mo>+</mo> <mi>b</mi> <mo>+</mo>
<mi>c</mi> <mo>+</mo> <mi>d</mi></mrow>
<mo form="infix">&RightArrow;</mo>
<mo form="infix">&LeftArrow;</mo>
</munderover>
<mo>;</mo>
<mrow>
<mo>(</mo><mfrac>
<mrow>
<mn>1</mn>
<mo>+</mo>
<msqrt><mn>5</mn></msqrt>
</mrow>
<mn>2</mn>
</mfrac><mo>)</mo>
</mrow>
<mo>;</mo>
<mrow>
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow>
<mrow>
<mo>-</mo>
<mi>b</mi>
</mrow>
<mo>&PlusMinus;</mo>
<msqrt>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
<mo>-</mo>
<mrow>
<mn>4</mn>
<mo>&InvisibleTimes;</mo>
<mi>a</mi>
<mo>&InvisibleTimes;</mo>
<mi>c</mi>
</mrow>
</mrow>
</msqrt>
</mrow>
<mrow>
<mn>2</mn>
<mo>&InvisibleTimes;</mo>
<mi>a</mi>
</mrow>
</mfrac>
</mrow>
<mrow>
<mo form="prefix">(</mo>
<mo form="prefix">{</mo>
<mo form="infix">&UpArrow;</mo>
<mrow>
<mo>&#x222B;</mo>
<mfrac linethickness="26">
<mfrac>
<mrow><mi>n</mi>
<mrow>
<mo>{</mo>
<mi>n</mi>
<mo>+</mo>
<mn>1</mn>
<mo>)</mo>
</mrow>
</mrow>
<mn>2</mn>
</mfrac>
<mi>y</mi>
</mfrac>
<mo>&DownArrow;</mo>
<mo form="postfix">}</mo>
<mo form="postfix">)</mo>
</mrow>
</mrow>
<mrow>
<mi>x</mi>
<mover>
<mo form="infix">&RightArrow;</mo>
<mtext> maps to </mtext>
</mover>
<mi>y</mi>
</mrow>
</math>