Feature Request: Expose the package name #17

Open
opened 2026-03-12 15:08:06 +00:00 by zral0kh · 2 comments

First thanks for making this really compatible with cetz (only a shallow wrapper), that makes so many things easier.

I want to integrate all cetz-based drawing packages with touying nicely, which requires conditionally accessing packages, which only really works by having the user input the module and us recognizing it.

Thus i need to recognize packages, which currently is hard to do, so please expose the module name.
at best just as #let name = circuiteria in your lib.typ

thx

First thanks for making this really compatible with cetz (only a shallow wrapper), that makes so many things easier. I want to integrate all cetz-based drawing packages with touying nicely, which requires conditionally accessing packages, which only really works by having the user input the module and us recognizing it. Thus i need to recognize packages, which currently is hard to do, so please expose the module name. at best just as `#let name = circuiteria` in your `lib.typ` thx
Owner

Thank you for taking interest in Circuiteria

I'm not sure I understand the need for a package to expose its name. What do you mean by "conditionally accessing packages" ?
Wouldn't users simply import the package and use it directly in their document ?

Thank you for taking interest in Circuiteria I'm not sure I understand the need for a package to expose its name. What do you mean by "conditionally accessing packages" ? Wouldn't users simply import the package and use it directly in their document ?
Author

Hi, please take a look at this issue i would like to do: https://github.com/touying-typ/touying/issues/302

And a more general answer to why exposing names is useful:
It allows other packages to build on top of packages if they are imported / if the user wants to use them.

E,g, for touying this would allow us to use animated graphics without the user having to specify the bindings bc we can put them in the code. The user only needs to specify sth like reduce(MODULE), which based on the module would do different things. But to properly recognize the module we need the name.

Hi, please take a look at this issue i would like to do: https://github.com/touying-typ/touying/issues/302 And a more general answer to why exposing names is useful: It allows other packages to build on top of packages if they are imported / if the user wants to use them. E,g, for touying this would allow us to use animated graphics without the user having to specify the bindings bc we can put them in the code. The user only needs to specify sth like `reduce(MODULE)`, which based on the module would do different things. But to properly recognize the module we need the name.
Sign in to join this conversation.
No description provided.