Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion. Python 3.4 or 2.7. The library is designed to be as backward-compatible as reasonably possible and is able to run on old Python versions should it be necessary. (Use the setup.py script directly if you have Python 3.7, poetry doesn't seem to work with old Python versions.) The pylatexenc.latexencode module provides a function unicode_to_latex() which 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.

Features

  • Unicode Text to LaTeX code
  • Parse LaTeX code and convert to plain text
  • You can also run latex2text in command-line to convert LaTeX input
  • Documentation available
  • Examples available
  • Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion

Project Samples

Project Activity

See All Activity >

Categories

TeX/LaTeX

License

MIT License

Follow pylatexenc

pylatexenc Web Site

Other Useful Business Software
Rezku Point of Sale Icon
Rezku Point of Sale

Designed for Real-World Restaurant Operations

Rezku is an all-inclusive ordering platform and management solution for all types of restaurant and bar concepts. You can now get a fully custom branded downloadable smartphone ordering app for your restaurant exclusively from Rezku.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pylatexenc!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python TeX LaTeX

Registered

2024-05-14