-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 to Emmy converter #13
Comments
I love this idea! I've done a bit of the work here already, and I'd love to hear how this experience looks /feels to you: This is an equation editor like you're suggesting, with the ability to generate "MathJSON" out of the editable LaTeX: https://mathlive.mentat.org/#mathjson The idea is that I can turn that MathJSON blob into an emmy function, so you could take that example of yours and define (defn f [x] (* 3 (square x))) And then Let me know what else you're thinking here for this experience and let's make it happen. |
Thank you for sharing! I think what you have is very useful for people who are already comfortable in LaTeX or with constructing equations in general. For a math noob like myself, I would be worried about making a mistake when trying to recreate something I saw in a paper. I would be more confident in the MathJSON/Emmy output if I could copy-paste in LaTeX from somewhere else since I know there's no chance of human error. I have no idea how feasible that is! Example: I'm reading a paper or Wikipedia article (example) and I come across a formula that I'd like to use in my own codebase: I copy-paste the resulting string into a function that converts to Emmy:
Here's an example of GPT doing such conversion into Python. I chose Python since GPT is more likely to make mistakes in Clojure. I like the idea of converting to Emmy for many reasons, one of which is that I can render it back into LaTeX which would be helpful to ensure that no mistakes were made in translation. When using GPT, I kind of have to hope that it worked unless I was already an expert in the formula / code. Anyway, just an idea I had this morning. Glad you found it interesting! |
You probably thought of this already and this repo might not be the right place to talk about it, but if Emmy translates to LaTeX then it could do the opposite, which would be insane. I could open any academic paper and turn their proofs and formulas into executable code...
The text was updated successfully, but these errors were encountered: