Hello, sorry if I missed something. Is there an official tutorial for Typst packages? I think I didn’t see one in the documentation, and there are only community-made ones, but I’d like an official one if there is, or some recommendations if there isn’t. I’m still learning it.
All typst pkgs are at:
On its main page:
If you want to submit your own package, you can follow our documentation on publishing packages that will guide you through the process and give you some tips.
So… I read through all the information and I’ll know how to write a package? I just need to wire the entrypoint and it’ll behave just like importing the wired file?
I don’t know the wired and entrypoint words in ur sentence. If u want to…
if "learn to write a pkg" {browser("https://typst.app/docs/tutorial/making-a-template/")}
else if "register a pkg" {browser("https://github.com/typst/packages/docs/")}
else {panic("explain and supplement")}
From my experience, importing a package behaves like importing the exact file set by the entrypoint value in the package manifest. To learn how to write packages, I would recommend starting with local packages first.
1 Like
There is a blog post too, which gives a bit more practical advice: