-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Bug]: 章节等的样式会被修改,不应保存在常量 \c__..._tl
里
#240
Comments
回想了一下最开始写这块组件的思路,是从 实际上我也很迷糊,这些 |
我想的是,如果没有禁止多次设置某个选项,那么就不能把选项值存在常量里。哪怕大部分时候这些选项只设置一次。 如果有局部修改样式的需求,也许用 我得去看一下 |
是没有的。大概复旦的规定有比较好的一致性,没有这种需求。 我把所有可能被修改的 现在 |
\c__..._tl
里
哇啊,rebase 把提交记录搞得好乱。就这样吧全都改好了。 |
先决条件
我已尝试更新模板版本
我已检索模板手册
我已检索项目 wiki
我已确认这个问题没有在其他 issues 中提出过。
期望的现象
会被修改的 token list variable,视修改是局部还是全局,应命名为
\l_..._tl
或\g_..._tl
。发生了什么
目前项目里大量使用形如
\c_..._tl
的 constant token list variable,它们有的不是 constant/常量,目前的命名不合适。constant 意味着创建同时赋值,且后续不应修改。默认没有硬性约束,使用
\debug_on:n { check-declarations }
能报告一些错误的用法。我没有完整检查,但
\c_@@_fmt_...tl
一类看起来都应该使用\l_@@_fmt_...tl
。NJUThesis/source/njuthesis.dtx
Lines 2887 to 2893 in 4bd5fd2
最小工作示例
njuthesis 模板版本
v1.3.2
模板获取途径
使用包管理器从 CTAN 安装
操作系统
macOS
TeX 发行版
TeX Live 2023
编译程序
XeLaTeX
额外信息
texdoc interface3
(2024-02-20), sec. 1.1 Naming functions and variables, p. 3texdoc interface3
(2024-02-20), sec. 4.8 Debugging support, doc for\debug_on:n
The text was updated successfully, but these errors were encountered: