Emacs xmsi-mode for Math Symbols Input

Perm url with updates: http://xahlee.org/emacs/xmsi-math-symbols-input.html

Emacs xmsi-mode for Math Symbols Input

Xah Lee, 2010-12-08, 2010-12-12

This is the home page for xmsi-mode 〔xmsi-math-symbols-input.el〕, a Emacs minor mode for inputing math symbols of Unicode characters.

Usage and Features

Call “xmsi-mode” to turn the mode on. Call it again to turn off.

Type “inf”, then press 【Shift+Space】, then it becomes “∞”. Here's some other popular symbols and their abbrevs:

abbrevsymbol
aα
bβ
pπ
lλ
gγ
GΓ
sum
prod
c+
rt
and
!=
>=
=>
->
e'é
e`è
e"ë
e^ê
n~ñ
aoå
dsR
^2²
_i

The abbreviations are based on Mathematica's 【Esc abbrev Esc】, HTML/XML entity name, TeX/LaTeX's 「\symbolname」.

Acting on Selected Word

If you have a text selection, then selected word will be taken as input. For example, type 「sin(a)」, select the “a”, then press 【Shift+Space】, then it becomse 「sin(α)」.

Supported Chars

To see the full list of supported chars and their abbrevs, call “xmsi-list-math-symbols”.

Here's a list of chars the mode currently suports:

¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ± ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Š š Ÿ ƒ ˆ ˜ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς σ τ υ φ χ ψ ω ϑ ϒ ϖ Ϝ ϝ ב ג ד ᵢ ᵥ – — ‘ ’ ‚ “ ” „ † ‡ • … ‰ ′ ″ ‴ ‹ › ‾ ⁄ ⁰ ⁱ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ ₀ ₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₊ ₋ ₌ ₍ ₎ ₐ ₑ ₒ ₓ ₔ € ℂ ℊ ℋ ℌ ℍ ℐ ℑ ℒ ℓ ℕ ℘ ℙ ℚ ℛ ℜ ℝ ™ ℤ ℨ Å ℬ ℭ ℯ ℰ ℱ ℳ ℴ ℵ ⅆ ⅇ ⅈ ⅉ ← ↑ → ↓ ↔ ↵ ⇐ ⇑ ⇒ ⇓ ⇔ ∀ ∂ ∃ ∅ ∇ ∈ ∉ ∋ ∏ ∑ − ∓ ∗ √ ∝ ∞ ∠ ∡ ∢ ∧ ∨ ∩ ∪ ∫ ∴ ∼ ≅ ≈ ≠ ≡ ≤ ≥ ⊂ ⊃ ⊄ ⊆ ⊇ ⊕ ⊗ ⊥ ⋅ ⌈ ⌉ ⌊ ⌋ ▲ △ ▶ ▷ ▼ ▽ ◀ ◁ ◊ ☄ ★ ☉ ☹ ☺ ☼ ☽ ☾ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇ ♠ ♣ ♥ ♦ ⦜ ⱼ 〈〉 《》 「」 『』 【】 〔〕 〖〗 𝔄 𝔅 𝔇 𝔈 𝔉 𝔊 𝔍 𝔎 𝔏 𝔐 𝔑 𝔒 𝔓 𝔔 𝔖 𝔗 𝔘 𝔙 𝔚 𝔛 𝔜 𝔞 𝔟 𝔠 𝔡 𝔢 𝔣 𝔤 𝔥 𝔦 𝔧 𝔨 𝔩 𝔪 𝔫 𝔬 𝔭 𝔮 𝔯 𝔰 𝔱 𝔲 𝔳 𝔴 𝔵 𝔶 𝔷

The mode currently supports over 300+ math symbols by abbrev input. (Any other char in unicode can be entered by decimal or hexadecimal or by name.)

XML Char Abbreviations

All XML char entity abbrevs are supported. For example, 「copy」 becomes 「©」. (See: List of XML and HTML character entity references)

Unicode By Number 「&#number;」

To type any unicode by its code point in decimal, use 「&#n;」. For example, 「α」 becomes 「α」.

Ending semicolon “;” is optional.

Unicode By Hexadecimal 「&#x‹hex›;」

To type any unicode by hexadecimal, use 「&#x‹number›;」. For example, 「α」 becomes 「α」.

Ending semicolon “;” is optional.

Unicode Char by Name

To type any unicode by the char's unicode full name, type 【Ctrl+x 8 Enter】 (ucs-insert). Asterisk “*” can be used as a wildcard to find the char. For example, calling “ucs-insert”, then type 「*arrow」 then Tab, then emacs will list all unicode char names that has “arrow” in it. (this feature is part of Emacs 23)

Get Unicode Font

For best result, you'll need a font that support unicode. See: Best Fonts for Unicode.

Also, you should be using Emacs 23, because it has a new unicode engine and font engine that supports operating system's fonts.

Buy xmsi-mode Now

Download the mode for $3. In the comment field, put “emacs math symbol input mode”. I'll email you the download link. Make sure your email address is included and correct.

Popular posts from this blog

11 Years of Writing About Emacs

does md5 creates more randomness?

Google Code shutting down, future of ErgoEmacs