Skip to main content

Module for easy LaTeX typesetting of algebraic expressions in symbolic form with automatic substitution and result computation.

Project description

LaTeX Expression

The LaTex Expression is a python module for easy LaTeX typesetting of algebraic expressions in symbolic form with automatic substitution and result computation.

It was originally written by Jan Stransky from Czech Technical University, Faculty of Civil Engineering, Department of Structural Mechanics, but the latest update was done in 2015.

Usage

Install using pip

pip install latexexpr

Enjoy

import latexexpr
v1 = latexexpr.Variable('H_{ello}',3.25,'m')
print(f'$$ {v1} $$')
v2 = latexexpr.Variable('W^{orld}',5.63,'m')
print(f'$$ {v2} $$')
e1 = latexexpr.Expression('E_{xample}',v1+v2,'m')
print(f'$$ {e1} $$')

Links

License

The project is released under LGPL v3

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

latexexpr-0.4.1.tar.gz (19.1 kB view hashes)

Uploaded Source

Built Distribution

latexexpr-0.4.1-py3-none-any.whl (18.9 kB view hashes)

Uploaded Python 3

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