aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2018-10-08 08:41:08 +0200
committerGitHub <noreply@github.com>2018-10-08 08:41:08 +0200
commit5890f602b32d4f7ec31d9f6c4b4e5e17b0866b96 (patch)
treefc5cc251b1aa4e7e78a0cfb10e24be0c364db856 /test
parente7a365255f0ceddf87d41f0debca19a074e754e9 (diff)
parentb2d532ea28eaaf0b7b2cf225c713c8a8d3f4a3bf (diff)
downloadperl-software-in-gnu-guix-5890f602b32d4f7ec31d9f6c4b4e5e17b0866b96.tar
perl-software-in-gnu-guix-5890f602b32d4f7ec31d9f6c4b4e5e17b0866b96.tar.gz
Merge pull request #2090 from bnjmnt4n/math
Allow users to customise MathJax options.
Diffstat (limited to 'test')
-rw-r--r--test/examples/math.html24
1 files changed, 23 insertions, 1 deletions
diff --git a/test/examples/math.html b/test/examples/math.html
index 6b879be..0f74a8f 100644
--- a/test/examples/math.html
+++ b/test/examples/math.html
@@ -83,6 +83,14 @@
</section>
<section>
+ <h3>TeX Macros</h3>
+
+ Here is a common vector space:
+ \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\infty}\]
+ used in functional analysis.
+ </section>
+
+ <section>
<section>
<h3>The Lorenz Equations</h3>
@@ -153,6 +161,14 @@
\]
</div>
</section>
+
+ <section>
+ <h3>TeX Macros</h3>
+
+ Here is a common vector space:
+ \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 &lt; +\infty}\]
+ used in functional analysis.
+ </section>
</section>
</div>
@@ -169,7 +185,13 @@
math: {
// mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
- config: 'TeX-AMS_HTML-full'
+ config: 'TeX-AMS_HTML-full',
+ TeX: {
+ Macros: {
+ R: '\\mathbb{R}',
+ set: [ '\\left\\{#1 \\; ; \\; #2\\right\\}', 2 ]
+ }
+ }
},
dependencies: [