Added unofficial #:latex-style option

This commit is contained in:
Georges Dupéron 2017-08-09 19:02:26 +02:00
parent 57529be1d1
commit 11b6094d38
3 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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*

View File

@ -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→*))