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.
This commit is contained in:
		| @@ -82,6 +82,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: [ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user