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.

Filename, size & hash SHA256 hash help File type Python version Upload date
unicode_tex-0.1.1.tar.gz (29.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page