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 #30

Closed turner-eng closed 2 years ago

turner-eng commented 3 years ago

Generalised math symbol conversion with the same logic as greek_letter conversion in convert_symbol() in core.py.

Conversion is only support for individual component of a variable name, by component I mean the superscript/subscript/main variable name that are separated by either the '_' or the 'ˆ ' sign in python variable name "R_Edˆinfty", e.g., 'R', 'Ed' and 'infty' are separate components when converted to latex as shown in the figure below.

image

Only these math symbols are added image

emetor commented 2 years ago

Closing pull request as it contains multiple issues and has partly been implemented.