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.

Source Distribution

unicode_tex-0.1.1.tar.gz (29.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page