A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

# Difference between revisions of "Equations in HTML"

Jump to navigation
Jump to search

Line 52: | Line 52: | ||

</math> | </math> | ||

</pre> | </pre> | ||

== Rejected == | |||

LaTeX: | LaTeX: | ||

Line 57: | Line 60: | ||

<math>x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math> | <math>x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math> | ||

</pre> | </pre> | ||

## Revision as of 00:28, 30 March 2008

Here are some ideas for how to include equations in HTML documents.

## Candidates

Full MathML:

<math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>x</mi> <mo>=</mo> <mfrac> <mrow> <mo>-</mo> <mi>b</mi> <mo>±</mo> <msqrt> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>-</mo> <mn>4</mn> <mo></mo> <mi>a</mi> <mo></mo> <mi>c</mi> </msqrt> </mrow> <mrow> <mn>2</mn> <mo></mo> <mi>a</mi> </mrow> </mfrac> </math>

MathML, but with <mo>, <mi>, and <mn> implied:

<math> x = <mfrac> <mrow> - b ± <msqrt> <msup> b 2 </msup> - 4 a c </msqrt> </mrow> <mrow> 2 a </mrow> </mfrac> </math>

## Rejected

LaTeX:

<math>x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}</math>