All Projects → erwanp → Pytexit

erwanp / Pytexit

Licence: other
Convert a Python expression to a LaTeX formula

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Pytexit

Caoutchouc
Make TeX great again
Stars: ✭ 38 (-28.3%)
Mutual labels:  latex
Latex Examples
Examples for the usage of LaTeX
Stars: ✭ 1,032 (+1847.17%)
Mutual labels:  latex
Pandoc Plantuml Filter
Pandoc filter for PlantUML code blocks
Stars: ✭ 51 (-3.77%)
Mutual labels:  latex
Mipt Thesis
Шаблон для дипломов в МФТИ
Stars: ✭ 40 (-24.53%)
Mutual labels:  latex
Bmc
My bespoke, multipurpose class; designed for general use in LaTeX documents.
Stars: ✭ 44 (-16.98%)
Mutual labels:  latex
Paredit Cheatsheet
A new, scalable source document for the Paredit Cheatsheet available as a png on the Emacs wiki
Stars: ✭ 48 (-9.43%)
Mutual labels:  latex
Latex Pass
Help you pass the LaTeX compilation by telling you which LaTeX packages are missing to compile your documents
Stars: ✭ 37 (-30.19%)
Mutual labels:  latex
Docker Texlive
A docker container containing an installation of texlive as well as several useful scripts.
Stars: ✭ 52 (-1.89%)
Mutual labels:  latex
Latexcv
👔 A collection of cv and resume templates written in LaTeX. Leave an issue if your language is not supported!
Stars: ✭ 1,027 (+1837.74%)
Mutual labels:  latex
Awesome Ebooks
收录开源的经典技术书籍 PDF 文件及相关网站,持续更新中...
Stars: ✭ 51 (-3.77%)
Mutual labels:  latex
Markdown Latex
A markdown parser for converting markdown to LaTeX written in PHP.
Stars: ✭ 40 (-24.53%)
Mutual labels:  latex
Overleaf Sync
Overleaf Two-Way Synchronization
Stars: ✭ 43 (-18.87%)
Mutual labels:  latex
Ltx2any
Yet another LaTeX build wrapper, with one or two nifty features
Stars: ✭ 48 (-9.43%)
Mutual labels:  latex
Leadsheets
A LaTeX package for creating leadsheets and songbooks
Stars: ✭ 38 (-28.3%)
Mutual labels:  latex
Bibsearch
Download, manage, and search a BibTeX database.
Stars: ✭ 52 (-1.89%)
Mutual labels:  latex
Master Thesis
The (un)official repository for my master thesis
Stars: ✭ 37 (-30.19%)
Mutual labels:  latex
Matlab2tikz
This program converts MATLAB®/Octave figures to TikZ/pgfplots figures for smooth integration into LaTeX.
Stars: ✭ 1,041 (+1864.15%)
Mutual labels:  latex
Bachelor Diploma
Дипломная работа бакалавра в LaTeX, оформленная в соответствии с нормоконтролем Севастопольского государственного университета в 2015 году
Stars: ✭ 52 (-1.89%)
Mutual labels:  latex
Stories About Ming Dynasty
明朝那些事儿(全七卷)
Stars: ✭ 52 (-1.89%)
Mutual labels:  latex
Neubachelorthesis
东北大学本科生毕业论文LaTeX模板
Stars: ✭ 50 (-5.66%)
Mutual labels:  latex

============================================ pytexit <https://pytexit.readthedocs.io>__

Convert a Python expression to a LaTeX formula

.. image:: https://img.shields.io/pypi/v/pytexit.svg :target: https://pypi.python.org/pypi/pytexit :alt: PyPI

.. image:: https://img.shields.io/travis/erwanp/pytexit.svg :target: https://travis-ci.com/erwanp/pytexit :alt: Tests

.. image:: https://codecov.io/gh/erwanp/pytexit/branch/master/graph/badge.svg :target: https://codecov.io/gh/erwanp/pytexit :alt: Coverage

Documentation

https://pytexit.readthedocs.io

.. image:: https://readthedocs.org/projects/pytexit/badge/ :target: https://pytexit.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status

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:

.. image:: https://github.com/erwanp/pytexit/blob/master/docs/output.png

References

Initial work from Geoff Reedy on StackOverflow: https://stackoverflow.com/a/3874621/5622825 . Kudos.

Similar projects:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].