varkor / quiver

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

Parsing tikzcd code #40

Closed ralphS16 closed 11 months ago

ralphS16 commented 3 years ago

It would be great if we could copy & paste some existing tikzcd code (for which we do not have the quiver hashcode) on quiver in order to make some adjustments.

dzackgarza commented 3 years ago

Just wanted to +1, and add that even just re-parsing existing exports might be useful. Sometimes it's easier to export to a text editor to label objects (e.g a long exact sequence or double complex with many similar rows), but then the tikzcd code diverges from the included URL. Being able to re-import back into the GUI somehow to add arrows, save all of the code, and generate a new URL would be fantastic!

varkor commented 11 months ago

This feature will be available in the next version of quiver. You can test it out at https://q.uiver.app/dev. I would appreciate any feedback, since this feature is complex and there are likely to be edge cases I haven't considered.

ralphS16 commented 11 months ago

I have tried a few diagrams. Here are my notes:

varkor commented 11 months ago

@ralphS16: thanks for the feedback!

varkor commented 11 months ago

I've now added a tip when you import a diagram and there are warnings, telling the user that they may press Escape to view the diagram. (If there are no warnings, the overlay disappears immediately.) Hopefully this makes what has happened clearer to the user.

image