How can I have global configuration parameters for a module/package?

I admit I have not read the full thread, but there’s another topic that seems relevant and I want to link it here:

As I said, I only skimmed this discussion, but I think the solutions presented there match what you and Andrew have come up with, so hopefully that gives you more confidence in your approach.

I think there is a language-level feature missing, and I’m getting more convinced that it’s a dynamic way of creating modules: Explicit module syntax · Issue #4853 · typst/typst · GitHub That issue links to a few other relevant issues. Particularly on point is this comment:

That would be a great solution for situations where configuration happens once, as opposed to situations where the configuration is contextual, in which case custom types would be superior.

1 Like