Skip to main content

Generates LaTeX math description from Python functions.

Project description

latexify

Python PyPI Latest Release License Downloads Code style: black Imports: isort

latexify is a Python package to compile a fragment of Python source code to a corresponding $\LaTeX$ expression:

Example of latexify usage

latexify provides the following functionalities:

  • Libraries to compile Python source code or AST to $\LaTeX$.
  • IPython classes to pretty-print compiled functions.

FAQs

  1. Which Python versions are supported?

    Syntaxes on Pythons 3.7 to 3.11 are officially supported, or will be supported.

  2. Which technique is used?

    latexify is implemented as a rule-based system on the official ast package.

  3. Are "AI" techniques adopted?

    latexify is based on traditional parsing techniques. If the "AI" meant some techniques around machine learning, the answer is no.

Getting started

See the example notebook, which provides several use-cases of this library.

You can also try the above notebook on Google Colaboratory.

See also the official documentation for more details.

How to Contribute

To contribute to this project, please refer CONTRIBUTING.md.

Disclaimer

This software is currently hosted on https://github.com/google, but not officially supported by Google.

If you have any issues and/or questions about this software, please visit the issue tracker or contact the main maintainer.

License

This software adopts the Apache License 2.0.

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

latexify_py-0.4.3.post1.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

latexify_py-0.4.3.post1-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file latexify_py-0.4.3.post1.tar.gz.

File metadata

  • Download URL: latexify_py-0.4.3.post1.tar.gz
  • Upload date:
  • Size: 29.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for latexify_py-0.4.3.post1.tar.gz
Algorithm Hash digest
SHA256 17ba32c748c61392de9f78ad50059a91b4d64832a44b7df68c167a3f68b7421b
MD5 04f725d8d8e543715d94c8ff9e00338c
BLAKE2b-256 d89dbb7416b97c7fcf882e6a2c599ab707686b97748a7f9b833ad1a8e47c06d5

See more details on using hashes here.

File details

Details for the file latexify_py-0.4.3.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for latexify_py-0.4.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 36b493358a90d80b6abb89eb7560eeff89ca5ea29db2187f7327851cfc96192a
MD5 ed7f9e5e2c7d5d8e3beca17c136dcab3
BLAKE2b-256 4347cae4336cf30cd3ba3a678352139a7bceffe04a4be0ee5e411425ca51304f

See more details on using hashes here.

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