diff --git a/TeXmacs/packages/customize/language/chinese.ts b/TeXmacs/packages/customize/language/chinese.ts index 75051ac40bca78e5f8a7d3375b2f8b1870d6675e..ce4759d2adbb09c40b2154285bb9a260faa934af 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 1a07f03c482d0a6fa861cdedbecded6cdf3d0def..26508fd210a32d63694721657af09dc8fdd1d693 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 7b348de601a0375b98bfadd1508c96c03477e8ba..ac48831a2dca81f9827dd35f5e18d48c57c0f905 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 0000000000000000000000000000000000000000..ae996087176cfd011607f6a7e3c6c123d94870a2 --- /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||Appendix A这是附录> |.>>>>|> + + + diff --git a/devel/204_12.md b/devel/204_12.md index 12e2c570b6d07a432b2d73c533edd036be620692..5bfb71cc4e005cdbb15a3eb90f93613af78c3291 100644 --- a/devel/204_12.md +++ b/devel/204_12.md @@ -1,4 +1,4 @@ -# 204_11 优化多行公式样式 +# 204_12 优化多行公式样式 ## 如何测试 - 清除缓存 diff --git a/devel/204_13.md b/devel/204_13.md new file mode 100644 index 0000000000000000000000000000000000000000..1cf03985385efe6cb43350236f5d958dc650d0c4 --- /dev/null +++ b/devel/204_13.md @@ -0,0 +1,21 @@ +# 204_13 优化目录样式 + +## 如何测试 +- 清除缓存 + - Windows下是先在文件资源管理器里的地址输入框里输入 `%appdata%`,然后删除 `AppData/Roaming/MoganLab` 和 `AppData/Local/MoganLab`。 + - Linux下是删除 `.cache/MoganLab`。 + - macOS下是删除 `~/Library/Caches/MoganLab`。 +- 测试文档:Texmacs/tests/tmu/204_13.tmu + - 更新目录,测试生成的结果是否下方What所写 + - 切换语言为英语(美国),看章和附录是否有抬头 + +## 2025/12/8 修改目录生成中关于chapter的规则 +### What +给chapter和appendix添加抬头,给目录中chapter添加抬头,中文环境下使用 第 x 章。 + +### Why +目录中chapter前面不带抬头,这是不标准的;chapter和appendix在generic样式下创建时没有抬头,需要补充。 + +### How +修改 section-base.ts 中的 chapter-toc +`` -> `| `