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

You Might Also Like
NeoLoad is a very comprehensive tool if you are looking for a performance test tool for web applications and other applications Icon
Your applications are all built differently, but they all need to perform. NeoLoad simplifies and scales performance testing for everything, from APIs and microservices, to end-to-end application testing through innovative protocol and browser-based capabilities.
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