-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Andreas Kröpelin edited this page Jul 7, 2024
·
6 revisions
Note
This wiki is incomplete so far, unfortunately.
Welcome to the Jlyfish wiki!
Jlyfish is a package for Typst and Julia that allows interoperation between the two. You can write Julia code directly inside your Typst source and it will be displayed as the result of the code in the final document.
There are three parts that work together to make this possible:
- The Typst package
jlyfish
. It provides functions that annotate your given Julia code with the necessary metadata such that the Julia side can query these information. It also takes care of displaying the results. - The Julia package
TypstJlyfish
. It is used rather as an executable than as a library and provides the two functionswatch
andcompile
that, given a Typst source file, query it for Julia code, execute it, find the most appropriate way to display the results, and finally write the computed data into a JSON file. - A project specific JSON file. It stores the results of the computations done in Julia and is read by the Typst package in order to display these results.