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

\CUSDependency{module={...}} 的失效 #14

Closed
xkwxdyy opened this issue Apr 1, 2024 · 3 comments
Closed

\CUSDependency{module={...}} 的失效 #14

xkwxdyy opened this issue Apr 1, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@xkwxdyy
Copy link
Contributor

xkwxdyy commented Apr 1, 2024

场景

我在一个模块 acknowledgement 里新建了一个环境 acknowledgement,然后另外一个库里使用 \CUSDependency{module={acknowledgement}} 加载,在 .tex 文件调用这个库后使用 acknowledgement 环境,报错环境未定义。

自查

我查看了 cus.sty 的关于这部分的源码:

cus/cus.sty

Line 332 in f0d8c9c

\cs_new_nopar:Npn \__cus_load_module:n #1 { }

发现模块的调用设置是空的,这是没来得及写还是我哪里没弄对?

xkwxdyy added a commit to xkwxdyy/cus that referenced this issue Apr 1, 2024
@xkwxdyy xkwxdyy mentioned this issue Apr 1, 2024
@Sophanatprime
Copy link
Owner

原本的设想是模块只由 cus 提供,其它用户定义的内容都使用库,而 cus 会自己加载所有模块,所以 module 是不需要的。

@xkwxdyy
Copy link
Contributor Author

xkwxdyy commented Apr 1, 2024

原来是这样。但是比如一些模块,参考文献、字体啥的您还没写好。论文模板里很多设置可能也只限于论文自用,可能普适性比较小,所以单独建立了一些模块。

@Sophanatprime Sophanatprime added the wontfix This will not be worked on label Apr 1, 2024
@Sophanatprime
Copy link
Owner

用户定义的内容还是使用库比较好。定义库可定制性更强一点,可以使用 \CUSLibraryDelayedUntil \CUSPassOptionsToLibrary 等等,未来 \CUSDenpency 也会为库增加其它功能。

@Sophanatprime Sophanatprime closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants