-
-
Notifications
You must be signed in to change notification settings - Fork 52
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 without npm #448
Comments
Awesome. Thanks a lot! Hopefully this will fix also our #212 issue 😅 I'll have a look at integrating this into Javis |
No problem! I suggested adding the LaTeX support directly to Luxor, but since it requires adding BTW, this is not a perfect implementation. There is some small issues with aligning. Feel free to improve on this code, so I can steal it back 😁 |
Haha sounds good. Yeah we would have the ability to have an extra JavisLatex package otherwise but I think for us it makes sense to directly integrate it. |
Out of curiosity, how does this work? |
Hey @TheCedarPrince ! Yeah, I still owe you the answers for Chapter 2. Finished reading it, but haven't implemented. End of semester, things are chaotic again. L"\frac{\mu}{x}" Now, MathTexEngine will recognize that the "\frac{}{}" will generate a horizontal line in a position, say (0,5), meaning that it's at the start of the string and at the middle in terms of vertical alignment. Next, it will parse to you that "\mu" is actually the unicode for \mu, at position (0,6). Finally, "x" is just "x" at position (0,-6). This is what it returns
Now you do you :) I mean, it's your job to draw this. This is where my functions come from. I use Luxor to draw this with SVG. |
It's an open issue (JuliaGraphics/Luxor.jl#124) and not rejected. 😂 |
Hey @Wikunia , I extensively tested @davibarreira 's suggestion and I can confirm, using his solution is completely feasible. |
Great thanks for testing @TheCedarPrince will it be integrated into Luxor or another package or do we have to do it in Javis directly? |
It should be integrated into Luxor.jl with Requires.jl. |
The idea is to extend |
Hey @Wikunia, @cormullion, and @davibarreira ! A more visual example that I made is here: However, it would appear that MathTeXEngine cannot yet fully subsume all parts of LaTeX just yet. However, as you were suggesting earlier, actually, @Wikunia , I would rather advocate to create a new package in the JuliaAnimators called like JavisTeX or JavisLaTeX to move some of this code from out of core Javis to other modules. |
@TheCedarPrince , perhaps improving MathTeXEngine is a better route. It doesn't seem like supporting matrices would be hard. |
Oh, I just saw that you opened an issue. Nice! |
I'll follow-up with you over at the issue here @davibarreira : Kolaru/MathTeXEngine.jl#48 But, I was thinking about having a Javis TeX package for at least a staging ground for experimentation and development of Javis specific TeX handling. |
From #483 which I opened too soon, another alternative is to: The reason I have used this complicated pipeline as opposed to MathJax is because it allows the user to use arbitrary LaTeX packages (like I have switched MakieTeX to use Poppler to render direct from PDF now, but you can see the old implementation in v0.0.4. |
Hello Javis developers. This is actually a tip. I've been playing around with Luxor, and I've implemented LaTeX without the need to install LaTeX in the users computer. To do so, I've used the package MathTeXEngine.jl. This awesome package is the one used by Makie to write LaTeX. Here is my implementation for a package that I'm working on
The text was updated successfully, but these errors were encountered: