зеркало из https://github.com/mozilla/gecko-dev.git
Examples to illustrate the newly added support of stretchy MathML symbols
This commit is contained in:
Родитель
2062b04715
Коммит
f3636f0f37
|
@ -19,14 +19,13 @@
|
||||||
* Roger B. Sidje <rbs@maths.uq.edu.au>
|
* Roger B. Sidje <rbs@maths.uq.edu.au>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
p :
|
p {
|
||||||
{
|
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
math, math[mode="inline"] {
|
math, math[mode="inline"] {
|
||||||
display: inline;
|
display: inline;
|
||||||
/* font-family: Times; */
|
font-family: Symbol, Times;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
/* font-weight: bold; */
|
/* font-weight: bold; */
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
|
@ -35,7 +34,7 @@ math, math[mode="inline"] {
|
||||||
math[mode="display"] {
|
math[mode="display"] {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
/* font-family: Arial; */
|
font-family: Symbol, Times;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
/* font-weight: bold; */
|
/* font-weight: bold; */
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
|
@ -52,6 +51,13 @@ mtext {
|
||||||
border: 1px solid purple;
|
border: 1px solid purple;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
mstyle {
|
||||||
|
background-color: yellow;
|
||||||
|
border: 1px solid black;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
ms {
|
ms {
|
||||||
color: blue;
|
color: blue;
|
||||||
}
|
}
|
||||||
|
@ -70,12 +76,16 @@ mspace {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
mrow {
|
msqrt {
|
||||||
border: 1px solid black;
|
border: 1px solid red;
|
||||||
font-style: italic;
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
mrow {
|
||||||
|
/* border: 1px solid black; */
|
||||||
|
/* font-style: italic; */
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
mphantom {
|
mphantom {
|
||||||
}
|
}
|
||||||
|
@ -95,6 +105,7 @@ msub, msup {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
mn {
|
mn {
|
||||||
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<?xml-stylesheet href="mathml.css" type="text/css"?>
|
<?xml-stylesheet href="mathml.css" type="text/css"?>
|
||||||
|
<!DOCTYPE math SYSTEM "mathml.dtd">
|
||||||
<!--
|
<!--
|
||||||
* The contents of this file are subject to the Mozilla Public
|
* The contents of this file are subject to the Mozilla Public
|
||||||
* License Version 1.1 (the "License"); you may not use this file
|
* License Version 1.1 (the "License"); you may not use this file
|
||||||
|
@ -24,22 +25,43 @@
|
||||||
|
|
||||||
<math xmlns="http://www.w3.org/Math/MathML">
|
<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>
|
<mrow>
|
||||||
<mi>x</mi>
|
<mi>x</mi>
|
||||||
<mo>+</mo>
|
<mo>+</mo>
|
||||||
<mrow>
|
<mrow>
|
||||||
<mo>(</mo>
|
<mo>(</mo>
|
||||||
<mfrac linethickness="20">
|
<mfrac linethickness="30">
|
||||||
<mi>a</mi>
|
<mi>a</mi>
|
||||||
<mi>b</mi>
|
<mi>b</mi>
|
||||||
</mfrac>
|
</mfrac>
|
||||||
<mo stretchy="false">)</mo>
|
<mo stretchy="false">)</mo>
|
||||||
</mrow>
|
</mrow>
|
||||||
</mrow>
|
</mrow>
|
||||||
|
<mo>;</mo>
|
||||||
|
|
||||||
<mn>in binomial formulas</mn>
|
in binomial formulas
|
||||||
|
|
||||||
<mrow>
|
<mrow>
|
||||||
<mo>(</mo>
|
<mo>(</mo>
|
||||||
|
@ -147,4 +169,168 @@
|
||||||
</msup>
|
</msup>
|
||||||
</mrow>
|
</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>←</mo>
|
||||||
|
</mover>
|
||||||
|
|
||||||
|
<mo>;</mo>
|
||||||
|
|
||||||
|
<munder>
|
||||||
|
<mrow> <mi>b</mi> <mo>+</mo> <mi>c</mi> <mo>+</mo> <mi>d</mi></mrow>
|
||||||
|
<mo form="infix">→</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">→</mo>
|
||||||
|
<mo form="infix">←</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>±</mo>
|
||||||
|
<msqrt>
|
||||||
|
<mrow>
|
||||||
|
<msup>
|
||||||
|
<mi>b</mi>
|
||||||
|
<mn>2</mn>
|
||||||
|
</msup>
|
||||||
|
<mo>-</mo>
|
||||||
|
<mrow>
|
||||||
|
<mn>4</mn>
|
||||||
|
<mo>⁢</mo>
|
||||||
|
<mi>a</mi>
|
||||||
|
<mo>⁢</mo>
|
||||||
|
<mi>c</mi>
|
||||||
|
</mrow>
|
||||||
|
</mrow>
|
||||||
|
</msqrt>
|
||||||
|
</mrow>
|
||||||
|
<mrow>
|
||||||
|
<mn>2</mn>
|
||||||
|
<mo>⁢</mo>
|
||||||
|
<mi>a</mi>
|
||||||
|
</mrow>
|
||||||
|
</mfrac>
|
||||||
|
</mrow>
|
||||||
|
|
||||||
|
<mrow>
|
||||||
|
<mo form="prefix">(</mo>
|
||||||
|
<mo form="prefix">{</mo>
|
||||||
|
<mo form="infix">↑</mo>
|
||||||
|
<mrow>
|
||||||
|
<mo>∫</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>↓</mo>
|
||||||
|
<mo form="postfix">}</mo>
|
||||||
|
<mo form="postfix">)</mo>
|
||||||
|
</mrow>
|
||||||
|
</mrow>
|
||||||
|
|
||||||
|
<mrow>
|
||||||
|
<mi>x</mi>
|
||||||
|
<mover>
|
||||||
|
<mo form="infix">→</mo>
|
||||||
|
<mtext> maps to </mtext>
|
||||||
|
</mover>
|
||||||
|
<mi>y</mi>
|
||||||
|
</mrow>
|
||||||
|
|
||||||
</math>
|
</math>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче