Skip to main content

Python library for encoding unicode to latex and for parsing LaTeX to generate unicode text

Project description

Python library for encoding unicode to latex and for parsing LaTeX to generate unicode text.

Unicode Text to LaTeX code

latexencode.py provides a function utf8tolatex() which, as its name suggests, converts a unicode string into LaTeX text and escape sequences. It should recognize accented characters and most math symbols. A couple of switches allow you to alter how this function behaves.

You can also run latexencode.py as a script to convert plain unicode text (from the standard input or from files given on the command line) into LaTeX code, written on to the standard output.

Parsing LaTeX code & converting to plain text (unicode)

latexwalker.py provides a series of routines (in particular, start with get_latex_nodes()), that parse the LaTeX structure of given LaTeX code and returns a logical structure of objects, which can then be used to produce output in another format such as plain text.

latex2text.py builds up on top of latexwalker.py, and provides functions to convert given LaTeX code to plain text with unicode characters.

Note that you can also run latex2text.py as a script to convert LaTeX input (either from the standard input, or from files given on the command line) into plain text, written on the standard output.

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

pylatexenc-1.0.post1.tar.gz (30.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylatexenc-1.0.post1-py2-none-any.whl (30.6 kB view details)

Uploaded Python 2

File details

Details for the file pylatexenc-1.0.post1.tar.gz.

File metadata

File hashes

Hashes for pylatexenc-1.0.post1.tar.gz
Algorithm Hash digest
SHA256 a302d20719695008b7178b88963a5b402a07c005b3e83862503d87280698f98b
MD5 0a36808770a0929f4e33ec503502944a
BLAKE2b-256 e5ec8e396cf9ed38516af3cc356cf97285dd9d94778ecaa1dabc4b5472509ac9

See more details on using hashes here.

File details

Details for the file pylatexenc-1.0.post1-py2-none-any.whl.

File metadata

File hashes

Hashes for pylatexenc-1.0.post1-py2-none-any.whl
Algorithm Hash digest
SHA256 6b82a57521fe22be5694e4d4e07531c4b88d7af1f41449c146243dc773bf5044
MD5 660fc7f1052b49bca2095220849130f3
BLAKE2b-256 d9f8ac2b6b8cf3b3f9da3810a5e5e93b12eda9860762b8f2ab8612e411f74e44

See more details on using hashes here.

Supported by

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