Skip to main content

Convert between unicode characters and latex commands in Python.

Project description

Module unicode_tex provides the map between unicode characters and latex commands.

To convert a unicode character u to latex commands:

unicode_tex.unicode_to_tex_map.get(u, u)

To convert a latex command l to unicode characters:

unicode_tex.tex_to_unicode_map.get(l, l)

Both unicodetotexmap and textounicodemap are dict objects, generated from http://www.w3.org/Math/characters/unicode.xml .

The code is a python version of http://www.johndcook.com/data.js .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for unicode_tex, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size unicode_tex-0.1.1.tar.gz (29.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page