diff --git a/MathJax/config/default.js b/MathJax/config/default.js index 27c375236..29c937278 100644 --- a/MathJax/config/default.js +++ b/MathJax/config/default.js @@ -341,7 +341,7 @@ MathJax.Hub.Config({ // restart processing within an element that has been marked as // ignored above. // - processClass: "texMath" //"tex2jax_process", + processClass: "texMath", //"tex2jax_process", // // Set to "true" to allow \$ to produce a dollar without starting in-line diff --git a/dollar.rkt b/dollar.rkt index 11efec7ed..433e5de1c 100644 --- a/dollar.rkt +++ b/dollar.rkt @@ -216,28 +216,30 @@ EOTEX (void)) (define ($ s . strs) - (cond-element - [html (($-html-handler) `(,s . ,strs))] - [latex `("$" ,s ,@strs "$")] - ;; TODO: use a unicode representation of math, e.g. x^2 becomes x² - [else `(,s . ,strs)])) + (let ([$- ($-html-handler)]) + (cond-element + [html ($- `(,s . ,strs))] + [latex `("$" ,s ,@strs "$")] + ;; TODO: use a unicode representation of math, e.g. x^2 becomes x² + [else `(,s . ,strs)]))) (define ($$ s . strs) - (cond-element - [html (($$-html-handler) `(,s . ,strs))] - [latex `("\\[" ,s ,@strs "\\]")] - ;; TODO: use a spatial representation of display math, e.g. - ;; \sum_{i=0}^n x_i^2 - ;; becomes: - ;; n - ;; ─── - ;; ╲ 2 - ;; 〉 x - ;; ╱ i - ;; ─── - ;; i=0 - ;; Or use a spatial unicode representation, so that the above becomes: - ;; n - ;; ∑ xᵢ² - ;; i=0 - [else `(,s . ,strs)])) + (let ([$$- ($$-html-handler)]) + (cond-element + [html ($$- `(,s . ,strs))] + [latex `("\\[" ,s ,@strs "\\]")] + ;; TODO: use a spatial representation of display math, e.g. + ;; \sum_{i=0}^n x_i^2 + ;; becomes: + ;; n + ;; ─── + ;; ╲ 2 + ;; 〉 x + ;; ╱ i + ;; ─── + ;; i=0 + ;; Or use a spatial unicode representation, so that the above becomes: + ;; n + ;; ∑ xᵢ² + ;; i=0 + [else `(,s . ,strs)]))) diff --git a/katex-convert-unicode.rkt b/katex-convert-unicode.rkt index 4cf79849b..46999f3de 100644 --- a/katex-convert-unicode.rkt +++ b/katex-convert-unicode.rkt @@ -91,5 +91,9 @@ [∀ "\\forall"] [∃ "\\exists"] [≡ "\\equiv"] - [≢ "\not\\equiv"])) + [≢ "\not\\equiv"] + [… "\\ldots"] + [⋯ "\\cdots"] + [⋰ "\\uddots"] ;; or \iddots from package mathdots, see http://tex.stackexchange.com/a/17650 + [⋱ "\\ddots"])) str)) \ No newline at end of file diff --git a/scribblings/scribble-math.scrbl b/scribblings/scribble-math.scrbl index d7f598eb6..94738d1b2 100644 --- a/scribblings/scribble-math.scrbl +++ b/scribblings/scribble-math.scrbl @@ -26,8 +26,8 @@ @title[#:style (with-html5 manual-doc-style)]{@racketmodname[scribble-math]} @author[ - @author+email["Georges Dupéron" "georges.duperon@gmail.com"] - @author+email["Jens Axel Søgaard" "jensaxel@soegaard.net"]] + @author+email["Jens Axel Søgaard" "jensaxel@soegaard.net"] + @author+email["Georges Dupéron" "georges.duperon@gmail.com"]] @defmodule[scribble-math]