Added unofficial #:latex-style option
This commit is contained in:
parent
57529be1d1
commit
11b6094d38
|
@ -321,11 +321,11 @@ EOTEX
|
||||||
;; TODO: use a unicode representation of math, e.g. x^2 becomes x²
|
;; TODO: use a unicode representation of math, e.g. x^2 becomes x²
|
||||||
[else strs])))
|
[else strs])))
|
||||||
|
|
||||||
(define ($$ . strs)
|
(define ($$ #:latex-style [latex-style math-display-style-latex] . strs)
|
||||||
(let ([$$- ($$-html-handler)])
|
(let ([$$- ($$-html-handler)])
|
||||||
(cond-element
|
(cond-element
|
||||||
[html ($$- strs)]
|
[html ($$- strs)]
|
||||||
[latex (elem #:style math-display-style-latex strs)]
|
[latex (elem #:style latex-style strs)]
|
||||||
;; TODO: use a spatial representation of display math, e.g.
|
;; TODO: use a spatial representation of display math, e.g.
|
||||||
;; \sum_{i=0}^n x_i^2
|
;; \sum_{i=0}^n x_i^2
|
||||||
;; becomes:
|
;; becomes:
|
||||||
|
|
|
@ -101,6 +101,7 @@
|
||||||
[⋱ "\\ddots{}"]
|
[⋱ "\\ddots{}"]
|
||||||
[∌ "\\notni{}"]
|
[∌ "\\notni{}"]
|
||||||
[ℰ "\\mathcal{E}"]
|
[ℰ "\\mathcal{E}"]
|
||||||
|
[𝒮 "\\mathcal{S}"]
|
||||||
[• "\\bullet{}"]
|
[• "\\bullet{}"]
|
||||||
[|'| "{}'"]
|
[|'| "{}'"]
|
||||||
[′ "{}'"]
|
[′ "{}'"]
|
||||||
|
@ -117,6 +118,7 @@
|
||||||
[≟ "\\stackrel{?}{=}"]
|
[≟ "\\stackrel{?}{=}"]
|
||||||
[≛ "\\stackrel{*}{=}"]
|
[≛ "\\stackrel{*}{=}"]
|
||||||
[≝ "\\stackrel{\\scriptscriptstyle\\mathsf{def}}{=}"]
|
[≝ "\\stackrel{\\scriptscriptstyle\\mathsf{def}}{=}"]
|
||||||
|
[∃ "\\exists{}"]
|
||||||
))
|
))
|
||||||
(if (string? str)
|
(if (string? str)
|
||||||
(string-replace*
|
(string-replace*
|
||||||
|
|
|
@ -19,5 +19,7 @@
|
||||||
[❳ "\\ifmathjax{\\unicode{x2773}}\\iflatex{❳}"]
|
[❳ "\\ifmathjax{\\unicode{x2773}}\\iflatex{❳}"]
|
||||||
[φ "\\phi"]
|
[φ "\\phi"]
|
||||||
[▷ "\\triangleright"]
|
[▷ "\\triangleright"]
|
||||||
|
[∄ "\\nexists"]
|
||||||
|
[≠ "\\neq"]
|
||||||
))
|
))
|
||||||
(katex-convert-unicode str* mathmode? more-sym→*))
|
(katex-convert-unicode str* mathmode? more-sym→*))
|
Loading…
Reference in New Issue
Block a user