[222_80] 为 big-figure 和 big-table 添加 prefix by section number 选项#3271
Merged
JackYansongLi merged 1 commit intomainfrom May 7, 2026
Merged
[222_80] 为 big-figure 和 big-table 添加 prefix by section number 选项#3271JackYansongLi merged 1 commit intomainfrom
JackYansongLi merged 1 commit intomainfrom
Conversation
31c43ef to
42f7f80
Compare
42f7f80 to
1426921
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[222_80] 为 big-figure 和 big-table 环境添加 "prefix by section number" 选项
如何测试
section-nr.figure-nr格式(如 1.1、1.2)2.1、2.2等2026/05/06 实现 big-figure 和 big-table 的 section number 前缀选项
What
为 big-figure 和 big-table 环境的焦点工具栏添加 "Prefix by section number" 选项。
Why
目前 theorem 环境在焦点工具栏中有 "Prefix by section number" 选项(通过
number-long-article包实现),而 big-figure 和 big-table 环境没有。用户期望 figure 和 table 也能像 theorem 那样按 section number 前缀编号。How
在
TeXmacs/progs/text/text-menu.scm中:standard-options添加"number-long-article"standard-options添加"number-long-article"这样焦点工具栏会自动从
document-style.scm中读取number-long-article的描述,显示为 "Prefix by section number" 复选框。涉及文件
TeXmacs/progs/text/text-menu.scmstandard-options,添加"number-long-article"standard-options,添加"number-long-article"实现说明
number-long-article包定义了display-std-env宏,将std-env组中所有环境的编号前缀为 section number。由于 figure 和 table 的计数器已属于std-env组(通过figure-env组间接加入),启用number-long-article后它们的编号会自动带有 section number 前缀。