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

Suggestion: integrate with Typst? #453

Open
user202729 opened this issue Apr 28, 2024 · 3 comments
Open

Suggestion: integrate with Typst? #453

user202729 opened this issue Apr 28, 2024 · 3 comments

Comments

@user202729
Copy link

Is this a reasonable proposal? (I may be interested in implementing it)

Typst is another typesetting engine that also allows math mode.

Unlike TeX, it is written in Rust and I think more amenable to directly linking to it instead of interface through clunky command-line. Which should also provide some speed boost.

@charlesstaats
Copy link
Contributor

I'm not sure I understand exactly what you are proposing. Here is my best guess:

  1. Create a version of Asymptote that uses Typst internally instead of TeX. (Any file with labels would probably need to be specialized for either the TeX or Typst backend, since their notations are not compatible.)
  2. Create some way to use Asymptote from Typst, analogous to the asymptote or asypictureB package.

Is one or both of these what you have in mind?

@user202729
Copy link
Author

I'm mostly thinking of the former one. The latter can be implemented "easily" from the existing facilities.

The remark is true.

@knuesel
Copy link

knuesel commented May 12, 2024

Typst supports WebAssembly plugins... Maybe Asymptote could be compiled to wasm, replacing the pieces that use TeX by code that communicates with the typst instance through the plugin API? Then things would work transparently for the user without the need to install anything (just write import "asymptote:version" in the typst document and typst would download and run the wasm plugin when compiling the document).

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

3 participants