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/examples/math.html')
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
From 29b0e86089eb3ec0d4bb5811c9b723dfcf36703c Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
Date: Thu, 4 Oct 2018 14:48:01 +0200
Subject: remove head.min.js in favor of simple built-in script loader
---
demo.html | 1 -
index.html | 1 -
js/reveal.js | 90 ++++++++++++++++++++++--------
lib/js/head.min.js | 6 --
plugin/markdown/example.html | 1 -
test/assets/external-script-a.js | 1 +
test/assets/external-script-b.js | 1 +
test/assets/external-script-c.js | 1 +
test/assets/external-script-d.js | 1 +
test/examples/embedded-media.html | 1 -
test/examples/math.html | 1 -
test/examples/slide-backgrounds.html | 1 -
test/examples/slide-transitions.html | 1 -
test/test-async-dependencies.html | 74 ++++++++++++++++++++++++
test/test-dependencies.html | 54 ++++++++++++++++++
test/test-markdown-element-attributes.html | 1 -
test/test-markdown-external.html | 1 -
test/test-markdown-options.html | 1 -
test/test-markdown-slide-attributes.html | 1 -
test/test-markdown.html | 1 -
test/test-pdf.html | 1 -
test/test.html | 1 -
22 files changed, 200 insertions(+), 42 deletions(-)
delete mode 100644 lib/js/head.min.js
create mode 100644 test/assets/external-script-a.js
create mode 100644 test/assets/external-script-b.js
create mode 100644 test/assets/external-script-c.js
create mode 100644 test/assets/external-script-d.js
create mode 100644 test/test-async-dependencies.html
create mode 100644 test/test-dependencies.html
(limited to 'test/examples/math.html')
diff --git a/demo.html b/demo.html
index 8aa4aba..04b47d2 100644
--- a/demo.html
+++ b/demo.html
@@ -384,7 +384,6 @@ Reveal.addEventListener( 'customevent', function() {
-
+
+
+
+
+