Skip to content
ypsu edited this page Sep 27, 2014 · 15 revisions

Features

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).

Screenshot 1

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.

Screenshot 2

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."

Usage

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:

Gnome settings screenshot

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.

Thanks

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.

Related work

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

Clone this wiki locally