erwanp / pytexit

Convert a Python expression to a LaTeX formula
https://pytexit.readthedocs.io/
Other
114 stars 31 forks source link

Generalised math symbol conversion for components(individual superscript/subscript) #29

Closed turner-eng closed 3 years ago

turner-eng commented 3 years ago

I generalised the math symbols conversion in individual component,

Key things to note:

  1. component(down to individual superscript/subscript) name should be the same as the defined options for conversion, e.g., one option we have is "prime" --> "\prime", for this conversion rule to apply, "Fˆ23prime" won't work, but "Fˆprime" will be turned into(F^{\prime}).

  2. I have added some script to allow the test_functions.py to let the file use the "pytexit" module in the current directory instead of your default "pytexit" installed in your machine's python site-packages folder.