From b2d532ea28eaaf0b7b2cf225c713c8a8d3f4a3bf Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Thu, 8 Feb 2018 20:54:21 +0800 Subject: 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. --- test/examples/math.html | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'test') 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 @@ -82,6 +82,14 @@ \] +
+

TeX Macros

+ + Here is a common vector space: + \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 < +\infty}\] + used in functional analysis. +
+

The Lorenz Equations

@@ -153,6 +161,14 @@ \]
+ +
+

TeX Macros

+ + Here is a common vector space: + \[L^2(\R) = \set{u : \R \to \R}{\int_\R |u|^2 < +\infty}\] + used in functional analysis. +
@@ -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: [ -- cgit v1.2.3