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

QuickLaTeX Integration #188

Open
olynch opened this issue Nov 10, 2023 · 1 comment
Open

QuickLaTeX Integration #188

olynch opened this issue Nov 10, 2023 · 1 comment
Labels
discussion ongoing discussion

Comments

@olynch
Copy link

olynch commented Nov 10, 2023

It would be cool to have integration with quicklatex.com. The API seems pretty easy to use: I can render a formula via the following curl call.

curl -d "formula=1+1&fsize=17px&fcolor=000000&mode=0&out=1&remhost=quicklatex.com" -X POST https://www.quicklatex.com/latex3.f

It returns a link to a png file, but if you just change the "png" at the end of the link to "svg", you get an svg version.

I'm imagining that there would be an additional export panel on quiver where you could push a button and it would send the tikz to quicklatex, and then you'd get a link to the svg. This would make it much easier to send people diagrams in places like email where you can't embed quiver.

The terms of service for quicklatex are that you just need to provide a link to quicklatex, so that shouldn't be a problem.

@varkor varkor added the discussion ongoing discussion label Nov 10, 2023
@varkor
Copy link
Owner

varkor commented Nov 10, 2023

Thanks for sharing this, I wasn't aware of QuickLaTeX. This would be an alternative course of action to that proposed in #8, which involves including MathJax (in addition to KaTeX, which is what quiver currently uses) and using that to render the labels (since MathJax, unlike KaTeX, can export to SVG). There are advantages/disadvantages to both approaches. An advantage of QuickLaTeX is that it would be quicker to implement, but on the other hand, quiver tends to produce better diagrams than the corresponding LaTeX diagrams. I'll give it some thought.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion ongoing discussion
Projects
None yet
Development

No branches or pull requests

2 participants