svenkreiss / unicodeit

Converts LaTeX tags to unicode: \mathcal{H} → ℋ. Available on the web or as Automator script for the Mac.
https://www.unicodeit.net
Other
287 stars 34 forks source link
converts-latex-tags unicode

UnicodeIt

Tested on Linux, Mac and Windows: Tests

Converts LaTeX tags to unicode. Available online at unicodeit.net.

Examples

\alpha α, \beta β, \infty ∞       e^+ e⁺, \mu^- μ⁻               \exists ∃, \nexists ∄
\int ∫, \sum ∑, \partial ∂        \to →, p\bar{p} pp̅             \mathcal{H} ℋ, \mathbb{R} ℝ
\slash{\partial} ∂̸                \underline{x} x̲                \phone ☎, \checkmark ✓
\dot{x} ẋ, \ddot{x} ẍ             A^6 A⁶, m_0 m₀                 \Im ℑ, \Re ℜ, \hbar ℏ
\gamma γ, \Gamma Γ                \~{O} Õ                        \perp ⊥, \parallel ∥
\sfrac{3}{5} ⅗                    \therefore ∴, \because ∵       \subset ⊂, \supset ⊃

Python

Install with pip install unicodeit and run

python -m unicodeit.cli \\alpha

or in Python

import unicodeit
print(unicodeit.replace('\\alpha'))

JavaScript / TypeScript

Install with npm install unicodeit --save-dev and use it like this:

var unicodeit = require('unicodeit');
console.log(unicodeit.replace('\\alpha'));

Mac Automator

Create your own Automator Workflow:

automator script

To set a keyboard shortcut, go to System PreferencesKeyboardShortcutsServicesTextUnicodeItAction. Choose a keyboard shortcut like Command+Option+Shift U.

Now you are all set to use your new keyboard shortcut in many apps, like here in Keynote:

keynote_demo

[dev] New Release Flow