Skip to content

Commit

Permalink
DOC: add equation number example (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw authored Aug 9, 2019
1 parent 5bf8283 commit bfd1a94
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions doc/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,42 @@ environment for more complex matrices:
\msum m z x & \msum m z y & \psum m (x^2 + y^2)
\end{array}
\right)
Equation numbers
----------------

Some of Maxwell's equations are given in :eq:`gauss-law`,
:eq:`gauss-law-magnetism`, and :eq:`maxwell-faraday-equation`.

.. code-block:: rst
.. math::
:label: gauss-law
\nabla \cdot \mathbf{E} = 4 \pi \rho
.. math::
:label: gauss-law-magnetism
\nabla \cdot \mathbf{B} = 0
.. math::
:label: maxwell-faraday-equation
\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}
.. math::
:label: gauss-law
\nabla \cdot \mathbf{E} = 4 \pi \rho
.. math::
:label: gauss-law-magnetism
\nabla \cdot \mathbf{B} = 0
.. math::
:label: maxwell-faraday-equation
\nabla \times \mathbf{E} = -\frac{\partial \mathbf{B}}{\partial t}

0 comments on commit bfd1a94

Please sign in to comment.