Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Convert a Python expression in a LaTeX formula

Project description



=======

pytexit

=======



Convert a Python expression in a LaTeX formula





Documentation

-------------



https://pytexit.readthedocs.io






Install

-------



``pytexit`` is on PyPi::



pip install pytexit





Use

---



``pytexit`` features the ``py2tex``, ``for2tex`` ``for2py`` functions.



In a Terminal, use ``py2tex``::



py2tex 'x = 2*sqrt(2*pi*k*T_e/m_e)*(DeltaE/(k*T_e))**2*a_0**2'



In a Python console, use ``py2tex``::



from pytexit import py2tex

py2tex('x = 2*sqrt(2*pi*k*T_e/m_e)*(DeltaE/(k*T_e))**2*a_0**2')



returns the corresponding LaTeX formula (to re-use in papers)::



$$x=2\\sqrt{\\frac{2\\pi k T_e}{m_e}} \\left(\\frac{\\Delta E}{k T_e}\\right)^2 a_0^2$$



and (in ipython console only) prints the equation:





Keywords: latex,py2tex
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Text Processing
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Operating System :: OS Independent

Project details


Release history Release notifications

This version
History Node

0.2.12

History Node

0.2.11

History Node

0.2.10

History Node

0.2.9

History Node

0.2.8

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.1

History Node

0.1.11

History Node

0.1.10

History Node

0.1.9

History Node

0.1.8

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pytexit-0.2.12-py2.py3-none-any.whl (15.8 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jun 15, 2018
pytexit-0.2.12.tar.gz (22.5 kB) Copy SHA256 hash SHA256 Source None Jun 15, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page