diff options
author | Benjamin Tan <demoneaux@gmail.com> | 2018-02-08 20:54:21 +0800 |
---|---|---|
committer | Benjamin Tan <demoneaux@gmail.com> | 2018-02-08 20:54:21 +0800 |
commit | b2d532ea28eaaf0b7b2cf225c713c8a8d3f4a3bf (patch) | |
tree | f736afd40fe27d13652f3ee618de4b3f9212d0be /test | |
parent | 7cd2c9138d2a28f4395799bcfd3e810dfee511ea (diff) | |
download | perl-software-in-gnu-guix-b2d532ea28eaaf0b7b2cf225c713c8a8d3f4a3bf.tar perl-software-in-gnu-guix-b2d532ea28eaaf0b7b2cf225c713c8a8d3f4a3bf.tar.gz |
Allow users to customise MathJax options.
Ref. #1856, #2006, #2045.
This is a more open approach to allow customisation of all MathJax options instead of select options only.
Diffstat (limited to 'test')
-rw-r--r-- | test/examples/math.html | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/test/examples/math.html b/test/examples/math.html index d35e827..73484d7 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 < +\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 < +\infty}\] + used in functional analysis. + </section> </section> </div> @@ -170,7 +186,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: [ |