-
Notifications
You must be signed in to change notification settings - Fork 393
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
Some basic questions about this awesome project #75
Comments
@moringspeaker First of all, the main branch is a bit different from the released version (v0.1.1). I'd like to explain how it works based on the main branch. The core functionlity of this library is
As for "decorator", the Python decorator is a syntax sugar to call the function with decorated stuff and replace the stuff with the return value. So the following two code are basically the same: @latexify.function
def f(x):
... def f(x):
...
f = latexify.function(f) |
Thanks for your patient explaination! I spent some time to read this awesome project's source code and I wonder if you guys plan to support some more complicated formats like a matrix or something? It's always annoyed for me to write my own code to transfer a Numpy matrix into Latex format. |
Yeah sometimes it is requested, and particularly for arrays, I am still thinking of how/what range of expressions should be supported by this library (e.g., 2x2 arrays are small enough to compile, but large arrays and/or arrays with more than 2 dimensions are basically not suitable for LaTeX). It would be nice to have a specific issue for arrays. Let me create it and continue discussion. |
Delegated to #78. |
Hi, I accidentally found this project and it spends me quite a few time to basically figure out how this works and I'm still a little confused about it. Can I just simply summarize this Python package as a "decorator" which is used when we are writing a function in Python to generate an extra formula in Latex format?
The text was updated successfully, but these errors were encountered: