Bugzilla – Attachment 81724 Details for
Bug 66277
Use columnalign to implement matrix alignment
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Sample output
align.html (text/html), 4.56 KB, created by
Frédéric Wang
on 2013-06-29 20:59:17 UTC
(
hide
)
Description:
Sample output
Filename:
MIME Type:
Creator:
Frédéric Wang
Created:
2013-06-29 20:59:17 UTC
Size:
4.56 KB
patch
obsolete
><!doctype html> ><html> > <head> > <title>testcase</title> > <meta charset="utf-8"> > </head> > <body> > ><p><math xmlns="http://www.w3.org/1998/Math/MathML"> > <semantics> > <mtable> > <mtr> > <mtd columnalign="right"> > <mrow> > <mi>x</mi> > <mo stretchy="false">+</mo> > <mi>y</mi> > </mrow> > </mtd> > <mtd> > <mrow> > <mrow/> > <mo stretchy="false">=</mo> > <mrow/> > </mrow> > </mtd> > <mtd columnalign="left"> > <mn>2</mn> > </mtd> > </mtr> > <mtr> > <mtd columnalign="right"> > <mi>x</mi> > </mtd> > <mtd> > <mrow> > <mrow/> > <mo stretchy="false">=</mo> > <mrow/> > </mrow> > </mtd> > <mtd columnalign="left"> > <mrow> > <mn>2</mn> > <mo stretchy="false">â</mo> > <mi>y</mi> > </mrow> > </mtd> > </mtr> > </mtable> > <annotation encoding="StarMath 5.0"> >matrix{ >alignr x+y # {}={} # alignl 2 ## >alignr x ># {}={} # alignl 2-y >} ></annotation> > </semantics> ></math></p> > ><p><math xmlns="http://www.w3.org/1998/Math/MathML"> > <semantics> > <mtable> > <mtr> > <mtd> > <mfrac numalign="left" denomalign="left"> > <mrow> > <msup> > <mi>x</mi> > <mn>2</mn> > </msup> > <mo stretchy="false">â</mo> > <mn>9</mn> > </mrow> > <mi>x</mi> > </mfrac> > </mtd> > </mtr> > <mtr> > <mtd> > <mfenced open="(" close=")"> > <mtable> > <mtr> > <mtd columnalign="right"> > <mn>100</mn> > </mtd> > </mtr> > <mtr> > <mtd columnalign="right"> > <mn>7</mn> > </mtd> > </mtr> > </mtable> > </mfenced> > </mtd> > </mtr> > </mtable> > <annotation encoding="StarMath 5.0">{alignl x^2 - 9} over {alignl x} newline >left(binom { alignr 100} {alignr 7} right) ></annotation> > </semantics> ></math></p> > ><p><math xmlns="http://www.w3.org/1998/Math/MathML"> > <semantics> > <mtable> > <mtr> > <mtd> > <mrow> > <mi mathvariant="italic">Hello</mi> > <mi mathvariant="italic">world</mi> > </mrow> > </mtd> > </mtr> > <mtr> > <mtd columnalign="left"> > <mrow> > <mo stretchy="false">(</mo> > <mi>a</mi> > <mo stretchy="false">)</mo> > </mrow> > </mtd> > </mtr> > </mtable> > <annotation encoding="StarMath 5.0">stack{Hello world # >alignl(a)} ></annotation> > </semantics> ></math></p> > ><p><math xmlns="http://www.w3.org/1998/Math/MathML"> > <semantics> > <mtable> > <mtr> > <mtd> > <mi>a</mi> > </mtd> > <mtd> > <mtext>=</mtext> > </mtd> > <mtd columnalign="left"> > <mi>b</mi> > </mtd> > </mtr> > <mtr> > <mtd> > <mrow/> > </mtd> > <mtd> > <mtext>=</mtext> > </mtd> > <mtd columnalign="left"> > <mrow> > <mi>c</mi> > <mo stretchy="false">+</mo> > <mn>1</mn> > </mrow> > </mtd> > </mtr> > </mtable> > <annotation encoding="StarMath 5.0">matrix{ >a # "=" # alignl{b} ## >{} # "=" # alignl{c+1} >} ></annotation> > </semantics> ></math></p> > ><p><math xmlns="http://www.w3.org/1998/Math/MathML"> > <semantics> > <mtable> > <mtr> > <mtd columnalign="left"> > <mrow> > <mrow> > <msup> > <mi>a</mi> > <mn>2</mn> > </msup> > <mo stretchy="false">+</mo> > <msup> > <mi>b</mi> > <mn>2</mn> > </msup> > </mrow> > <mo stretchy="false">=</mo> > <msup> > <mi>c</mi> > <mn>2</mn> > </msup> > </mrow> > </mtd> > </mtr> > <mtr> > <mtd> > <mrow> > <mrow> > <mn>2</mn> > <mo stretchy="false">â</mo> > <mrow> > <mo stretchy="false">(</mo> > <mrow> > <mn>1</mn> > <mo stretchy="false">+</mo> > <mn>2</mn> > <mo stretchy="false">+</mo> > <mn>3</mn> > <mo stretchy="false">+</mo> > <mn>4</mn> > <mo stretchy="false">+</mo> > <mn>5</mn> > </mrow> > <mo stretchy="false">)</mo> > </mrow> > </mrow> > <mo stretchy="false">=</mo> > <mrow> > <mn>6</mn> > <mo stretchy="false">â</mo> > <mn>5</mn> > </mrow> > </mrow> > </mtd> > </mtr> > <mtr> > <mtd columnalign="right"> > <mrow> > <mi stretchy="false" mathvariant="normal">γ</mi> > <mo stretchy="false">=</mo> > <mrow> > <msup> > <mi>x</mi> > <mn>2</mn> > </msup> > <mo stretchy="false">â</mo> > <msup> > <mi>y</mi> > <mn>2</mn> > </msup> > </mrow> > </mrow> > </mtd> > </mtr> > </mtable> > <annotation encoding="StarMath 5.0">alignl a^2 + b^2 = c^2 newline >alignc 2 * (1 + 2 + 3 + 4 + 5) = 6 * 5 newline >alignr %gamma = x^2 - y^2 ></annotation> > </semantics> ></math></p> > > </body> ></html>
<!doctype html> <html> <head> <title>testcase</title> <meta charset="utf-8"> </head> <body> <p><math xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mtable> <mtr> <mtd columnalign="right"> <mrow> <mi>x</mi> <mo stretchy="false">+</mo> <mi>y</mi> </mrow> </mtd> <mtd> <mrow> <mrow/> <mo stretchy="false">=</mo> <mrow/> </mrow> </mtd> <mtd columnalign="left"> <mn>2</mn> </mtd> </mtr> <mtr> <mtd columnalign="right"> <mi>x</mi> </mtd> <mtd> <mrow> <mrow/> <mo stretchy="false">=</mo> <mrow/> </mrow> </mtd> <mtd columnalign="left"> <mrow> <mn>2</mn> <mo stretchy="false">â</mo> <mi>y</mi> </mrow> </mtd> </mtr> </mtable> <annotation encoding="StarMath 5.0"> matrix{ alignr x+y # {}={} # alignl 2 ## alignr x # {}={} # alignl 2-y } </annotation> </semantics> </math></p> <p><math xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mtable> <mtr> <mtd> <mfrac numalign="left" denomalign="left"> <mrow> <msup> <mi>x</mi> <mn>2</mn> </msup> <mo stretchy="false">â</mo> <mn>9</mn> </mrow> <mi>x</mi> </mfrac> </mtd> </mtr> <mtr> <mtd> <mfenced open="(" close=")"> <mtable> <mtr> <mtd columnalign="right"> <mn>100</mn> </mtd> </mtr> <mtr> <mtd columnalign="right"> <mn>7</mn> </mtd> </mtr> </mtable> </mfenced> </mtd> </mtr> </mtable> <annotation encoding="StarMath 5.0">{alignl x^2 - 9} over {alignl x} newline left(binom { alignr 100} {alignr 7} right) </annotation> </semantics> </math></p> <p><math xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mtable> <mtr> <mtd> <mrow> <mi mathvariant="italic">Hello</mi> <mi mathvariant="italic">world</mi> </mrow> </mtd> </mtr> <mtr> <mtd columnalign="left"> <mrow> <mo stretchy="false">(</mo> <mi>a</mi> <mo stretchy="false">)</mo> </mrow> </mtd> </mtr> </mtable> <annotation encoding="StarMath 5.0">stack{Hello world # alignl(a)} </annotation> </semantics> </math></p> <p><math xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mtable> <mtr> <mtd> <mi>a</mi> </mtd> <mtd> <mtext>=</mtext> </mtd> <mtd columnalign="left"> <mi>b</mi> </mtd> </mtr> <mtr> <mtd> <mrow/> </mtd> <mtd> <mtext>=</mtext> </mtd> <mtd columnalign="left"> <mrow> <mi>c</mi> <mo stretchy="false">+</mo> <mn>1</mn> </mrow> </mtd> </mtr> </mtable> <annotation encoding="StarMath 5.0">matrix{ a # "=" # alignl{b} ## {} # "=" # alignl{c+1} } </annotation> </semantics> </math></p> <p><math xmlns="http://www.w3.org/1998/Math/MathML"> <semantics> <mtable> <mtr> <mtd columnalign="left"> <mrow> <mrow> <msup> <mi>a</mi> <mn>2</mn> </msup> <mo stretchy="false">+</mo> <msup> <mi>b</mi> <mn>2</mn> </msup> </mrow> <mo stretchy="false">=</mo> <msup> <mi>c</mi> <mn>2</mn> </msup> </mrow> </mtd> </mtr> <mtr> <mtd> <mrow> <mrow> <mn>2</mn> <mo stretchy="false">â</mo> <mrow> <mo stretchy="false">(</mo> <mrow> <mn>1</mn> <mo stretchy="false">+</mo> <mn>2</mn> <mo stretchy="false">+</mo> <mn>3</mn> <mo stretchy="false">+</mo> <mn>4</mn> <mo stretchy="false">+</mo> <mn>5</mn> </mrow> <mo stretchy="false">)</mo> </mrow> </mrow> <mo stretchy="false">=</mo> <mrow> <mn>6</mn> <mo stretchy="false">â</mo> <mn>5</mn> </mrow> </mrow> </mtd> </mtr> <mtr> <mtd columnalign="right"> <mrow> <mi stretchy="false" mathvariant="normal">γ</mi> <mo stretchy="false">=</mo> <mrow> <msup> <mi>x</mi> <mn>2</mn> </msup> <mo stretchy="false">â</mo> <msup> <mi>y</mi> <mn>2</mn> </msup> </mrow> </mrow> </mtd> </mtr> </mtable> <annotation encoding="StarMath 5.0">alignl a^2 + b^2 = c^2 newline alignc 2 * (1 + 2 + 3 + 4 + 5) = 6 * 5 newline alignr %gamma = x^2 - y^2 </annotation> </semantics> </math></p> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 66277
: 81724