-
Notifications
You must be signed in to change notification settings - Fork 14
Home
If you know the latex code of a character which you want in unicode, just enter the its code and then press enter. The unicode character is then copied to the clipboard and then automatically pasted to last focused application (e.g. chat window).
If there is no such code found, the advanced converter turns on. The advanced converter supports the latex characters prefixed by a '' and superscripts and subscripts. Super and subscripts are supported only for digits and the +, - and = signs.
Here are several examples which demonstrate what is supported (this is all unicode, no markup):
"α² ⋅ α²⁺³ ≡ α⁷": "\alpha^2 \cdot \alpha^{2+3} \equiv \alpha^7"
"𝐴 ∈ ℝⁿˣⁿ, 𝐯 ∈ ℝⁿ, λᵢ ∈ ℝ: 𝐴𝐯 = λᵢ𝐯": "\itA \in \bbR^{nxn}, \bfv \in \bbR^n, \lambda_i \in \bbR: \itA\bfv = \lambda_i\bfv"
"𝐛𝐨𝐥𝐝𝐟𝐚𝐜𝐞 𝑖𝑡𝑎𝑙𝑖𝑐 𝕓𝕝𝕒𝕔𝕜𝕓𝕠𝕒𝕣𝕕 𝓬𝓪𝓵𝓵𝓲𝓰𝓻𝓪𝓹𝓱𝓲𝓬 𝔣𝔯𝔞𝔨𝔱𝔲𝔯 𝚖𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎": "\bf{boldface} \it{italic} \bb{blackboard} \cal{calligraphic} \frak{fraktur} \mono{monospace}"
There is a special syntax when you want the whole text in special format. The text must start with it/bf/bb/... and a space. Examples:
"𝐓𝐡𝐢𝐬 𝐢𝐬 𝐚𝐥𝐥 𝐛𝐨𝐥𝐝𝐟𝐚𝐜𝐞.": "bf This is all boldface."
"𝓣𝓱𝓮 𝓺𝓾𝓲𝓬𝓴 𝓫𝓻𝓸𝔀𝓷 𝓯𝓸𝔁 𝓳𝓾𝓶𝓹𝓼 𝓸𝓿𝓮𝓻 𝓽𝓱𝓮 𝓵𝓪𝔃𝔂 𝓭𝓸𝓰.": "cal The quick brown fox jumps over the lazy dog."
You should bind the application to a hotkey to be able to easily use. For example in Gnome you could do this in the keyboard settings:
The application currently works only on Linux. It uses python, python's tkinter library or GTK depending which is available, xclip and xdotool utilities. You can start the gui on Windows/Mac though as it is cross-platform but auto-pasting isn't supported yet.
Phillip Berndt - made it work under Python 2.7.
Jos van den Oever - his unilatex.vim served as a base for the latex <-> unicode mapping.
vikhyat was kind enough to put up a similar application on his server for online use: http://vikhyat.net/stuff/latex_to_unicode/
jmeas ported it to node: https://github.com/jmeas/latex-to-unicode.js
@kbauer write a similar script with AutoHotKey: https://gist.github.com/kbauer/e8fee6514d124d5961f51fd7ba571bfd. You don't need to have a new window, but it only works in Windows.