Physics and Astronomy
Home School documents Web pages Mathematics in web pages

$\nabla \cdot {\bf D} = \rho$ $\nabla \cdot {\bf B} = 0$ $$\nabla \times {\bf E} = - {\partial {\bf B} \over \partial t}$$ $$\nabla \times {\bf H} = {\bf J} + {\partial {\bf D} \over \partial t}$$

# Mathematics in web pages

Courtesy of MathJax, if you are using our templating system you can now type LaTeX equations directly into your web pages and have them displayed in any web browser that supports javascript. The result is scalable and zoomable within the browser (try right-clicking on one of the above equations).

We will be consulting with the central web team about using this with ELE and T4.

## Another, in-line example

When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are $x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$

Note that the single-dollar "$" in-line escape is disabled by default as it it too likely to appear in ordinary text. ## Page source Here is the source of this page; as you can see we just typed the equations into the text: <html> <head> <title>MathJax</title> </head> <body> <p> $\nabla \cdot {\bf D} = \rho$ $\nabla \cdot {\bf B} = 0$ <!-- You can use "dollar dollar" if you prefer: --> $$\nabla \times {\bf E} = - {\partial {\bf B} \over \partial t}$$ $$\nabla \times {\bf H} = {\bf J} + {\partial {\bf D} \over \partial t}$$ </p> <h1>Mathematics in web pages</h1> <p>Courtesy of <a href='http://www.mathjax.org'>MathJax</a>, if you are using our templating system you can now type LaTeX equations directly into your web pages and have them displayed in any web browser that supports javascript. The result is scalable and zoomable within the browser (try right-clicking on one of the above equations). <p>We will be consulting with the central web team about using this with ELE and T4. <h2>Another, in-line example</h2> <p>When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are $x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$ <p>Note that the single-dollar "$" in-line escape is disabled by default
as it it too likely to appear in ordinary text.

<h2>Page source</h2>
<p>Here is the source of this page; as you can see we just typed the
equations into the text:
<pre class=code>
<!--#include virtual='mathjax.txt' encoding='none' -->
</pre>

<h3>Thanks to</h3>
<p>Charles for finding this and GP for the Maxwell equations in LaTeX.
</body>
</html>


### Thanks to

Charles for finding this and GP for the Maxwell equations in LaTeX.