aboutsummaryrefslogtreecommitdiff
path: root/doc/markup.rst
diff options
context:
space:
mode:
authorSebastian Méric de Bellefon <arnaudpourseb@gmail.com>2016-06-15 12:16:47 -0400
committerGitHub <noreply@github.com>2016-06-15 12:16:47 -0400
commit2c7c7359eca7c5e59d70958f9a9ef199476615c2 (patch)
tree6369e2ec83c346242dd1074771a58b8a8ff63ebb /doc/markup.rst
parent3b7166840552dc53694a8719c170251b89257792 (diff)
parent1f28fd887cd405ef5e31868ae51c32df2545e484 (diff)
Merge pull request #525 from idontgetoutmuch/master
Documentation for LaTeX markup.
Diffstat (limited to 'doc/markup.rst')
-rw-r--r--doc/markup.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/markup.rst b/doc/markup.rst
index a2274ad6..78718c18 100644
--- a/doc/markup.rst
+++ b/doc/markup.rst
@@ -799,6 +799,21 @@ If the output format supports it, the image will be rendered inside the
documentation. The image description is used as relpacement text and/or
image title.
+Mathematics / LaTeX
+~~~~~~~~~~~~~~~~~~~
+
+Haddock supports LaTeX syntax for rendering mathematical notation. The
+delimiters are ``\[...\]`` for displayed mathematics and ``\(...\)``
+for in-line mathematics. An example looks like this: ::
+
+ \[
+ f(a) = \frac{1}{2\pi i}\oint_\gamma \frac{f(z)}{z-a}\,\mathrm{d}z
+ \]
+
+If the output format supports it, the mathematics will be rendered
+inside the documentation. For example, the HTML backend will display
+the mathematics via `MathJax <https://www.mathjax.org>`__.
+
Anchors
~~~~~~~