Fix emacs math symbols

This commit is contained in:
Marco Thomas
2021-06-04 14:47:31 +02:00
parent 0173e49daf
commit dc9bda31ab
2 changed files with 9 additions and 26 deletions

View File

@@ -406,6 +406,12 @@
(setq TeX-parse-self t)
(setq preview-scale-function 1.5))
;; Fix math input
(use-package unicode-fonts
:ensure t
:config
(unicode-fonts-setup))
;; Math Symbols
(use-package math-symbol-lists
:ensure t
@@ -422,11 +428,6 @@
("=>" ?⇒)
("<->" ?↔)
("<=>" ?⇔)
("/\\" ?∧)
("\\/" ?)
; Predicate Logic
("ALL" ?∀)
("EX" ?∃)
; sets of numbers
("\\nats" ?)
("\\ints" ?)
@@ -434,29 +435,11 @@
("\\reals" ?)
("\\complex" ?)
("\\primes" ?)
; number powers
("^0" ?⁰) ("^1" ) ("^2" ) ("^3" ) ("^4" ?⁴) ("^5" ?⁵)
("^6" ?⁶) ("^7" ?⁷) ("^8" ?⁸) ("^9" ?⁹)
; plus and minus
("^-" ?⁻)
("^+" ?⁺)
; letter powers
("^a" ?ᵃ) ("^b" ?ᵇ) ("^c" ?ᶜ) ("^d" ?ᵈ) ("^e" ?ᵉ) ("^f" ?ᶠ)
("^g" ?ᵍ) ("^h" ) ("^i" ?ⁱ) ("^j" ) ("^k" ?ᵏ) ("^l" )
("^m" ?ᵐ) ("^n" ?ⁿ) ("^o" ?ᵒ) ("^p" ?ᵖ) ("^r" ) ("^s" )
("^t" ?ᵗ) ("^u" ?ᵘ) ("^v" ?ᵛ) ("^w" ) ("^x" ) ("^y" )
("^z" ?ᶻ)
; number subscript
("_0" ?₀) ("_1" ?₁) ("_2" ?₂) ("_3" ?₃) ("_4" ?₄) ("_5" ?₅)
("_6" ?₆) ("_7" ?₇) ("_8" ?₈) ("_9" ?₉)
; letter subscript
("_a" ?ₐ) ("_e" ?ₑ) ("_h" ?ₕ) ("_i" ?ⱼ) ("_k" ?ₖ) ("_l" ?ₗ) ("_m" ?ₘ)
("_n" ?ₙ) ("_o" ?ₒ) ("_p" ?ₚ) ("_s" ?ₛ) ("_t" ?ₜ) ("_x" ?ₓ)
)
)
(mapc (lambda (x)
(if (cddr x)
(quail-defrule (cadr x) (car (cddr x)))))
(append math-symbol-list-basic math-symbol-list-extended))
(append math-symbol-list-basic math-symbol-list-extended math-symbol-list-superscripts math-symbol-list-subscripts))
)
;; Java
@@ -469,7 +452,7 @@
(add-hook 'java-mode-hook (lambda ()
(push '("!=" . ?≠) prettify-symbols-alist)
(push '("<=" . ?≤) prettify-symbols-alist)
(push '(">=" . ?≥) prettify-symbols-alist)))
(push '(">=" . ?≥) prettify-symbols-alist)))
;; Haskell
(use-package haskell-mode

BIN
fonts/Quivira.otf Normal file

Binary file not shown.