I don’t know if the plugin is easy to combine with mathjax, but I think it is useful for those who want to draw with tikz.

Github link: GitHub - kisonecat/tikzjax: TikZJax is TikZ running under WebAssembly in the browser

What is tikz: PGF/TikZ - Wikipedia

20 Likes

Is there likely to be any follow up on this? I’m also super interested in this!

2 Likes

Indeed, this would be great if someone could make this work.

3 Likes

100% support this, I like to take notes using latex and a diagram language like this would be perfect

2 Likes

Also support this. Would be especially nice for an easy integration of tikz-cd

2 Likes

I do hope some talented, smart person decides to do this for the community. It would be very appreciated. I know it sounds dramatic, but things like this exisiting raise the average i.q. of humanity.

Thank you

1 Like

i neeeeeed this >_<

1 Like

I want it too

There’s a website named AoPS, which seems to support asymptote code to render math figures.

AoPS is very famous in math olympiad participators.

Tikz support would be absolutely amazing.

Yes, tikz support would be amazing! So, I wrote a quick proof of concept that renders a tikz picture to a png with an existing pdflatex installation and displays it in place. Just a dirty proof of concept without any libraries or custom styles yet, but shows that this is possible, at least on Linux.

tikz_poc

Oh, and I’m not an experienced js/ts programmer, so I’m not sure I can translate this into an actually usable plugin

5 Likes

Really need this! BTW, can we also include xyjax? It’s already a mathjax extension and we dont have to install pdftex.

The stack project uses xyjax for commutative diagrams.

@thequilo whaoo that’s awesome !
Many thanks for the work, is it available somewhere, do you plan to share it with the community ?
Thanks

It’s not available anywhere yet. It’s currently a very messy call to pdflatex in a MarkdownCodeBlockProcessor, and probably only works reliably on Linux. But I can try to polish it a little and put it on GitHub

1 Like

I put together a small GitHub repository with the proof of concept code, in case anybody is interested: GitHub - thequilo/obsidian-tikz-renderer

2 Likes

@thequilo , awesome !
Thank you very much for this exciting plugin and congrats for the hard work.
You’ve made my day !