varkor / quiver

A modern commutative diagram editor for the web.
https://q.uiver.app
MIT License
2.41k stars 79 forks source link

Mode to disable rendering of diagrams #138

Closed L1szt closed 2 years ago

L1szt commented 2 years ago

Is there a possibility to disable the rendering of commutative diagrams (i.e. the rendering of tikzcd blocks in the document), similar to the draft mode for the graphics package?

enjoysmath commented 2 years ago

That's a good question. But in general, we need a full-on API to talk to quiver. Possibly even down to the level of overriding default buttons and replacing with our own site buttons. I will look into doing this. It simply just needs to be a JavaScript API (i.e. a JS function that you call from HTML or JS) that enables/disables rendering mode for you, is that correct? Or do you need it as URL parameters?

L1szt commented 2 years ago

@enjoysmath Thanks for the quick response. Ideally it would behave similarly to the graphics package, if I include it as \usepackage[draft]{graphics} instead of just usepackage{graphics} no images included via the graphics package get rendered/loaded when compiling the file.

varkor commented 2 years ago

quiver doesn't handle the actual rendering of the diagrams: this is really a TikZ feature. I would recommend asking on Tex.SE about how to disable rendering of inline TikZ diagrams in draft mode.