Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX lexer #6

Open
bergwerf opened this issue Sep 8, 2016 · 3 comments
Open

LaTeX lexer #6

bergwerf opened this issue Sep 8, 2016 · 3 comments
Labels
enhancement Indicates new feature requests

Comments

@bergwerf
Copy link

bergwerf commented Sep 8, 2016

A minimal TeX equation lexer would be very useful for me. I'm not sure if it's easy to add TeX subscript and fractions to the Lexer though.

@fkleon
Copy link
Owner

fkleon commented Sep 9, 2016

I can see how that could be useful, and a minimal TeX lexer supporting just a small subset shouldn't be too hard to implement. Which notations would be important for your use case?

Unfortunately I currently don't have much time to work on this, but might pick it up in the future.
In the meantime - pull requests are welcome :)

@bergwerf
Copy link
Author

The only LaTeX features I often use and that might cost some extra effort to implement are fractions (because there are two {} groups, unlike most functions), and sub/superscript (e.g. \sin{3}^{10} is a power but `A_{10} is a variable).

I found I needed some advanced algebra features as well, so I'm now strongly considering SymPy for my project. It might be a good idea to keep this open though.
Fun fact, SymPy currently also still lacks an official LaTeX parser ;-)

@Shahxad-Akram
Copy link

Here is an example to render latex.

@fkleon fkleon added the enhancement Indicates new feature requests label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

3 participants