From 5629f460cd4d9f46a365040c7999f93e1595e2aa Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 9 Dec 2025 14:51:44 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=B8=AD=E6=8A=AC=E5=A4=B4=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../packages/customize/language/chinese.ts | 2 + TeXmacs/packages/section/section-base.ts | 2 +- TeXmacs/packages/section/section-generic.ts | 4 ++ TeXmacs/tests/tmu/204_13.tmu | 61 +++++++++++++++++++ devel/204_13.md | 19 ++++++ 5 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 TeXmacs/tests/tmu/204_13.tmu create mode 100644 devel/204_13.md diff --git a/TeXmacs/packages/customize/language/chinese.ts b/TeXmacs/packages/customize/language/chinese.ts index 75051ac40..ce4759d2a 100644 --- a/TeXmacs/packages/customize/language/chinese.ts +++ b/TeXmacs/packages/customize/language/chinese.ts @@ -118,6 +118,8 @@ >>>> + + |>>||\<#7B2C\> |>>>>>> \; diff --git a/TeXmacs/packages/section/section-base.ts b/TeXmacs/packages/section/section-base.ts index 1a07f03c4..26508fd21 100644 --- a/TeXmacs/packages/section/section-base.ts +++ b/TeXmacs/packages/section/section-base.ts @@ -231,7 +231,7 @@ >>>> - |>>|>>>>>> + |>>|| |>>>>>> |>>|>>>>>> diff --git a/TeXmacs/packages/section/section-generic.ts b/TeXmacs/packages/section/section-generic.ts index 7b348de60..ac48831a2 100644 --- a/TeXmacs/packages/section/section-generic.ts +++ b/TeXmacs/packages/section/section-generic.ts @@ -32,6 +32,10 @@ >>>>> + >>>> + + >>>> + <\active*> <\src-comment> Sections, subsections and subsubsections. diff --git a/TeXmacs/tests/tmu/204_13.tmu b/TeXmacs/tests/tmu/204_13.tmu new file mode 100644 index 000000000..dcc8f8668 --- /dev/null +++ b/TeXmacs/tests/tmu/204_13.tmu @@ -0,0 +1,61 @@ +> + +> + +<\body> + <\table-of-contents|toc> + 这是章> |.>>>>|> + + 1.1这是节 |.>>>>|> + + 这是小节 |.>>>>|> > + + 这是子节 |.>>>>|> > + + 这是附录> |.>>>>|> + + + + + + + + + + + + + +<\initial> + <\collection> + + + > + + + +<\references> + <\collection> + > + > + > + > + > + + + +<\auxiliary> + <\collection> + <\associate|toc> + |math-font-series||第 1 章这是章> |.>>>>|> + + 1.1这是节 |.>>>>|> + + |1.1.1这是小节 |.>>>>|> > + + |1.1.1.1这是子节 |.>>>>|> > + + |math-font-series||附录 A这是附录> |.>>>>|> + + + diff --git a/devel/204_13.md b/devel/204_13.md new file mode 100644 index 000000000..f7ddd09a4 --- /dev/null +++ b/devel/204_13.md @@ -0,0 +1,19 @@ +# 204_13 优化目录样式 + +## 如何测试 +- 清除缓存 + - Windows下是先在文件资源管理器里的地址输入框里输入 `%appdata%`,然后删除 `AppData/Roaming/MoganLab` 和 `AppData/Local/MoganLab`。 + - Linux下是删除 `.cache/MoganLab`。 + - macOS下是删除 `~/Library/Caches/MoganLab`。 +- 测试文档:Texmacs/tests/tmu/204_13.tmu + +## 2025/12/8 修改目录生成中关于chapter的规则 +### What +给chapter和appendix添加抬头,给目录中chapter添加抬头,中文环境下使用 第 x 章。 + +### Why +目录中chapter前面不带抬头,这是不标准的;chapter和appendix在generic样式下创建时没有抬头,需要补充。 + +### How +修改 section-base.ts 中的 chapter-toc +`` -> `| ` \ No newline at end of file -- Gitee From 173bdc858638759a8f6fbe76876ef45f1e975750 Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 9 Dec 2025 14:52:29 +0800 Subject: [PATCH 2/3] wip --- devel/204_12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/204_12.md b/devel/204_12.md index 12e2c570b..5bfb71cc4 100644 --- a/devel/204_12.md +++ b/devel/204_12.md @@ -1,4 +1,4 @@ -# 204_11 优化多行公式样式 +# 204_12 优化多行公式样式 ## 如何测试 - 清除缓存 -- Gitee From 1aafb058b2f006c3e67bdfcd9468e41d6037ba95 Mon Sep 17 00:00:00 2001 From: Yuki Date: Tue, 9 Dec 2025 14:57:06 +0800 Subject: [PATCH 3/3] devel --- TeXmacs/tests/tmu/204_13.tmu | 14 +++++++------- devel/204_13.md | 4 +++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/TeXmacs/tests/tmu/204_13.tmu b/TeXmacs/tests/tmu/204_13.tmu index dcc8f8668..ae9960871 100644 --- a/TeXmacs/tests/tmu/204_13.tmu +++ b/TeXmacs/tests/tmu/204_13.tmu @@ -1,6 +1,6 @@ -> +> -> +> <\body> <\table-of-contents|toc> @@ -37,9 +37,9 @@ <\references> <\collection> > - > - > - > + > + > + > > @@ -47,7 +47,7 @@ <\auxiliary> <\collection> <\associate|toc> - |math-font-series||第 1 章这是章> |.>>>>|> + |math-font-series||1这是章> |.>>>>|> 1.1这是节 |.>>>>|> @@ -55,7 +55,7 @@ |1.1.1.1这是子节 |.>>>>|> > - |math-font-series||附录 A这是附录> |.>>>>|> + |math-font-series||Appendix A这是附录> |.>>>>|> diff --git a/devel/204_13.md b/devel/204_13.md index f7ddd09a4..1cf039853 100644 --- a/devel/204_13.md +++ b/devel/204_13.md @@ -6,6 +6,8 @@ - Linux下是删除 `.cache/MoganLab`。 - macOS下是删除 `~/Library/Caches/MoganLab`。 - 测试文档:Texmacs/tests/tmu/204_13.tmu + - 更新目录,测试生成的结果是否下方What所写 + - 切换语言为英语(美国),看章和附录是否有抬头 ## 2025/12/8 修改目录生成中关于chapter的规则 ### What @@ -16,4 +18,4 @@ ### How 修改 section-base.ts 中的 chapter-toc -`` -> `| ` \ No newline at end of file +`` -> `| ` -- Gitee