Formula alignment
Daniel Marques <[email protected]> Fri, 18 Dec 2015 17:56:40 +0100
| Newsgroups | gmane.comp.web.mathematics |
|---|---|
| Message-ID | <[email protected]> |
--001a11c38854a347aa05272f0584
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Dear MathML group,
I=E2=80=99m just wandering how to align formulas given a symbol. For exampl=
e,
__y=3Dx+1
x+1=3Dy
(where the _ are spaces)
Reading the MathML specification, I came up with
<mtable>
<mtd>
<mi>y</mi>
<malignmark/>
<mo> =3D </mo>
<mi>x</mi>
<mo>+</mo>
<mn>1</mn>
</mtd>
<mtd>
<mi>x</mi>
<mo>+</mo>
<mn>1</mn>
<malignmark/>
<mo> =3D </mo>
<mi>y</mi>
</mtd>
</mtable>
Do you think that this is the best way to express that?
Another question is whether the malignmark must appear always inside a
table (mtable) or can be used also combined with <mspace
linebreak=3D"newline"/>. For example, is the following a valid alternative?
<mrow>
<mi>y</mi>
<malignmark/>
<mo> =3D </mo>
<mi>x</mi>
<mo>+</mo>
<mn>1</mn>
<mspace linebreak=3D"newline"/>
<mi>x</mi>
<mo>+</mo>
<mn>1</mn>
<malignmark/>
<mo> =3D </mo>
<mi>y</mi>
</mrow>
Dani
--001a11c38854a347aa05272f0584
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3Dus-ascii"><meta name=3D"Generator" content=3D"Microsoft Word 14 (filtere=
d medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=3D"EN-US" link=3D"blue" vlink=3D"purple"><div =
class=3D"WordSection1"><p class=3D"MsoNormal">Dear MathML group,</p><p clas=
s=3D"MsoNormal">=C2=A0</p><p class=3D"MsoNormal">I=E2=80=99m just wandering=
how to align formulas given a symbol. For example,</p><p class=3D"MsoNorma=
l">__y=3Dx+1</p><p class=3D"MsoNormal">x+1=3Dy</p><p class=3D"MsoNormal">(w=
here the _ are spaces)</p><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoN=
ormal">Reading the MathML specification, I came up with</p><p class=3D"MsoN=
ormal"><mtable></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 &l=
t;mtd></span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 =C2=A0=
=C2=A0<mi>y</mi></span></p><p class=3D"MsoNormal"><span lang=3D=
"ES">=C2=A0=C2=A0=C2=A0 <malignmark/></span></p><p class=3D"MsoNormal=
"><span lang=3D"ES">=C2=A0=C2=A0=C2=A0 <mo> =3D </mo></span></p=
><p class=3D"MsoNormal"><span lang=3D"ES"> =C2=A0=C2=A0=C2=A0<mi>x<=
;/mi></span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0=C2=A0 =
=C2=A0<mo>+</mo></span></p><p class=3D"MsoNormal"><span lang=3D=
"ES">=C2=A0=C2=A0 =C2=A0<mn>1</mn></span></p><p class=3D"MsoNor=
mal"><span lang=3D"ES">=C2=A0 </mtd></span></p><p class=3D"MsoNormal"=
><span lang=3D"ES"> =C2=A0<mtd></span></p><p class=3D"MsoNormal"><spa=
n lang=3D"ES">=C2=A0=C2=A0=C2=A0 <mi>x</mi></span></p><p class=
=3D"MsoNormal">=C2=A0=C2=A0 =C2=A0<mo>+</mo></p><p class=3D"Mso=
Normal">=C2=A0 =C2=A0=C2=A0<mn>1</mn></p><p class=3D"MsoNormal"=
>=C2=A0 =C2=A0=C2=A0<malignmark/></p><p class=3D"MsoNormal"><span lan=
g=3D"ES">=C2=A0 =C2=A0=C2=A0<mo> =3D </mo></span></p><p class=
=3D"MsoNormal"><span lang=3D"ES">=C2=A0=C2=A0 =C2=A0<mi>y</mi><=
/span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 </mtd></spa=
n></p><p class=3D"MsoNormal"></mtable></p><p class=3D"MsoNormal">=C2=
=A0</p><p class=3D"MsoNormal">Do you think that this is the best way to exp=
ress that?</p><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoNormal">Anoth=
er question is whether the malignmark must appear always inside a table (mt=
able) or can be used also combined with <mspace linebreak=3D"newlin=
e"/>. <span lang=3D"ES">For example, is the following a valid alter=
native?</span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 <mrow&=
gt;</span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 =C2=A0=C2=A0&=
lt;mi>y</mi></span></p><p class=3D"MsoNormal"><span lang=3D"ES">=
=C2=A0=C2=A0=C2=A0 <malignmark/></span></p><p class=3D"MsoNormal"><sp=
an lang=3D"ES">=C2=A0=C2=A0=C2=A0 <mo> =3D </mo></span></p><p c=
lass=3D"MsoNormal"><span lang=3D"ES"> =C2=A0=C2=A0=C2=A0<mi>x</mi&=
gt;</span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0=C2=A0 =C2=A0&=
lt;mo>+</mo></span></p><p class=3D"MsoNormal"><span lang=3D"ES">=
=C2=A0=C2=A0 =C2=A0<mn>1</mn></span></p><p class=3D"MsoNormal">=
=C2=A0=C2=A0=C2=A0 <mspace linebreak=3D"newline"/><span lan=
g=3D"ES"></span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0=C2=A0=
=C2=A0 <mi>x</mi></span></p><p class=3D"MsoNormal"><span lang=
=3D"ES">=C2=A0=C2=A0 =C2=A0<mo>+</mo></span></p><p class=3D"Mso=
Normal"><span lang=3D"ES">=C2=A0 =C2=A0=C2=A0<mn>1</mn></span><=
/p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 =C2=A0=C2=A0<malignma=
rk/></span></p><p class=3D"MsoNormal"><span lang=3D"ES">=C2=A0 =C2=A0=C2=
=A0<mo> =3D </mo></span></p><p class=3D"MsoNormal"><span lang=
=3D"ES">=C2=A0=C2=A0 =C2=A0<mi>y</mi></span></p><p class=3D"Mso=
Normal"><span lang=3D"ES">=C2=A0 </mrow></span></p><p class=3D"MsoNor=
mal">=C2=A0</p><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoNormal">Dani=
</p></div></body></html>
--001a11c38854a347aa05272f0584--