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

Support fletcher output? #209

Closed
kokic opened this issue Feb 17, 2024 · 2 comments
Closed

Support fletcher output? #209

kokic opened this issue Feb 17, 2024 · 2 comments

Comments

@kokic
Copy link

kokic commented Feb 17, 2024

There are numerous imperfections within Typst, including its core functionalities and reliance on third-party packages. However, a recent observation indicates that fletcher is emerging as a potential substitute for tikzcd in Typst, offering broader capabilities in charting.

From the already implemented functions, it can serve as a new output method for quiver.

Not considering parsing from the fletcher source code back to quiver. On one hand, the flexible grammar of Typst poses significant challenges in this integration effort. On the other hand, Typst's performance is robust enough to directly accommodate changes to the fletcher source code, allowing for immediate previews of the effects.

If deemed necessary, I am willing to undertake the implementation of this integration and open a pull request accordingly.


  • fletcher is a Typst package for drawing diagrams with arrows, built on top of CeTZ.
  • CeTZ (CeTZ, ein Typst Zeichenpaket) is a library for drawing with with an API inspired by TikZ and Processing.
@kokic kokic changed the title support fletcher output? Support fletcher output? Feb 17, 2024
@varkor
Copy link
Owner

varkor commented Feb 18, 2024

I would be willing to add support for Typst if someone volunteers to implement initial support for Typst export (meaning supporting most of the basic features of diagrams in quiver, though I think it's okay if some of the less commonly used features, e.g. wavy arrows, are not supported in an initial implementation). Regarding which drawing library to export to, I am happy with anything that is convenient for users, and is currently actively maintained. Implementing parsing is definitely not necessary.

If you are interested in implementing support for Typst, let me know if you have any questions about how quiver works. As a starting point, the functionality for exporting to LaTeX is here (and the functions that call it in the UI):

quiver/src/quiver.js

Lines 293 to 294 in a98fba4

QuiverImportExport.tikz_cd = new class extends QuiverImportExport {
export(quiver, settings, options, definitions) {

@varkor
Copy link
Owner

varkor commented Feb 18, 2024

I am going to close this issue in favour of the pre-existing issue #177, though.

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

No branches or pull requests

2 participants