From e3c40e7b0bb3d76bea566b0276bb37aa4243bb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E5=90=88=E6=95=A3=C2=B7=E8=B5=9B=E4=B8=81?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E6=9C=A8?= Date: Thu, 20 Nov 2025 19:51:34 +0800 Subject: [PATCH 1/4] wip --- .../documentation/texmacs/tmdoc-custom.css | 31 +++++++++++++++++++ TeXmacs/styles/documentation/texmacs/tmdoc.ts | 4 +-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 TeXmacs/styles/documentation/texmacs/tmdoc-custom.css diff --git a/TeXmacs/styles/documentation/texmacs/tmdoc-custom.css b/TeXmacs/styles/documentation/texmacs/tmdoc-custom.css new file mode 100644 index 000000000..6c75d55f5 --- /dev/null +++ b/TeXmacs/styles/documentation/texmacs/tmdoc-custom.css @@ -0,0 +1,31 @@ +/* tmdoc-custom.css — TeXmacs documentation style overrides + Location: styles/documentation/texmacs/ + + Adjust the variable --tm-code-bg below to change code-block background. +*/ +:root { + --tm-code-bg: #f5f6f7; /* light gray/blue — change this hex as desired */ +} + +/* Generic code / verbatim blocks (includes program/session variants so all share same bg) */ +pre, pre.verbatim, .verbatim, code, .prog, .program, pre.program, .input, .output, .session, pre.session { + background-color: var(--tm-code-bg); + padding: 0.5em 0.75em; + border-radius: 6px; + margin: 0.5em 0; + overflow: auto; + font-family: monospace, "Courier New", monospace; + font-size: 0.95em; + line-height: 1.4; +} + +/* Ensure inline code keeps a subtle background */ +code { + padding: 0.08em 0.2em; + border-radius: 4px; +} + +/* Removed special-case contrast for program/session so backgrounds are unified above. */ + +/* Make sure long lines scroll horizontally */ +pre { white-space: pre; } diff --git a/TeXmacs/styles/documentation/texmacs/tmdoc.ts b/TeXmacs/styles/documentation/texmacs/tmdoc.ts index d254f03e6..1feda9cac 100644 --- a/TeXmacs/styles/documentation/texmacs/tmdoc.ts +++ b/TeXmacs/styles/documentation/texmacs/tmdoc.ts @@ -48,7 +48,7 @@ >> - + @@ -57,7 +57,7 @@ Sections, subsections and subsubsections. - + >> >>> -- Gitee From 59055d079679c25e641f54cd1ad1d090195f48a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E5=90=88=E6=95=A3=C2=B7=E8=B5=9B=E4=B8=81?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E6=9C=A8?= Date: Fri, 21 Nov 2025 19:49:12 +0800 Subject: [PATCH 2/4] wip --- .../doc/configuration/conf.keyconfig.zh.tmu | 10 +++---- .../doc/configuration/conf.userpref.zh.tmu | 8 ++--- TeXmacs/doc/manual/manu.TEXMACSstart.en.tmu | 30 ++++++++++++++++++- 3 files changed, 38 insertions(+), 10 deletions(-) diff --git a/TeXmacs/doc/configuration/conf.keyconfig.zh.tmu b/TeXmacs/doc/configuration/conf.keyconfig.zh.tmu index 0f7198547..df14cb413 100644 --- a/TeXmacs/doc/configuration/conf.keyconfig.zh.tmu +++ b/TeXmacs/doc/configuration/conf.keyconfig.zh.tmu @@ -1,4 +1,4 @@ -> +> > @@ -12,14 +12,14 @@ 键盘的行为模式由中的一些用户选项指定: <\itemize> - |man-preferences.en.tm#preferences:look-and-feel>旨在提供和其他平台类似的快捷键与动作绑定的规则。 + |conf.userpref.zh.tmu#preferences:look-and-feel>旨在提供和其他平台类似的快捷键与动作绑定的规则。 - 细微的调整可在|man-preferences.en.tm#preferences:keyboard>中解决。 + 细微的调整可在|conf.userpref.zh.tmu#preferences:keyboard>中解决。 下面要讨论的是在不同系统上的键盘配置问题。 - 关于快捷键在文档中的显示,请阅读。另外,键盘快捷键的相关细节,请参考这一节。 + 关于快捷键在文档中的显示,请阅读。另外,键盘快捷键的相关细节,请参考这一节。 @@ -55,7 +55,7 @@ - 默认的快捷键不合你的心意时,你还可以. + 默认的快捷键不合你的心意时,你还可以. <\initial> diff --git a/TeXmacs/doc/configuration/conf.userpref.zh.tmu b/TeXmacs/doc/configuration/conf.userpref.zh.tmu index 2e3ae5782..48b7770d3 100644 --- a/TeXmacs/doc/configuration/conf.userpref.zh.tmu +++ b/TeXmacs/doc/configuration/conf.userpref.zh.tmu @@ -1,4 +1,4 @@ -> +> > @@ -12,7 +12,7 @@ <\description> >这个选项主要影响的快捷键风格。默认风格依据系统而定(下的Gnome、KDE或Emacs,下的Mac OS,下的Windows)。Emacs快捷键风格可以作为任何系统下的可选项。 - 更多细节请参考一文。 + 更多细节请参考一文。 >这个选项指定了需要用户输入时界面的弹出方式,或者是单独的弹出式窗口,或者是显示在的状态栏上。 @@ -23,7 +23,7 @@ >除了快捷键风格,还有一些其他的设置决定了键盘输入的行为模式: <\itemize> - 指定了 + 指定了 功能 @@ -34,7 +34,7 @@ >理论上,可以被嵌入宏和超链接,造成可以执行任意命令的险况。实际情况下,这个特性可能带来安全风险。所以,这个选项允许用户指定对不受信任的可执行代码的处理方式。 - >与其他格式的转换可在此菜单下配置。 更多细节参见这一章。 + >与其他格式的转换可在此菜单下配置。 更多细节参见代码集成|https://liiistem.cn/docs/guide-inser-latex.html>这一章。 >指定外部脚本的默认脚本语言。 diff --git a/TeXmacs/doc/manual/manu.TEXMACSstart.en.tmu b/TeXmacs/doc/manual/manu.TEXMACSstart.en.tmu index 7b4d0e89a..35f20455e 100644 --- a/TeXmacs/doc/manual/manu.TEXMACSstart.en.tmu +++ b/TeXmacs/doc/manual/manu.TEXMACSstart.en.tmu @@ -1,4 +1,4 @@ -> +> > @@ -107,6 +107,34 @@ Don't forget entering before trying to insert mathematical symbols or markup. New formulas can be inserted using icon on the mode-dependent icon toolbar or using the keyboard shortcuts (inline formula) or (displayed equation). + + + documents can be saved without loss of information in three formats: the native format (file extension .tm), Xml (.tmml) and as a Scheme expression (.stm). also provides bi-directional converters for , and . + + In addition to the above textual formats, documents can be exported in a wysiwyg (what-you-see-is-what-you-get) way to either Postscript or Pdf, which are used as the primary formats for printing documents. can also export document fragments to several vector or raster image formats. + + documents can be converted to other formats using the different items in the File\Export menu. Similarly, the File\Import menu contains all formats which can be imported into . Besides exporting or importing entire documents, it is also possible to copy and paste document fragments in various formats using Edit\Copy to and Edit\Paste from. The default formats for copy and pasting can be specified in Tools\Miscellaneous\Export selections as and Tools\Miscellaneous\Import selections as. + + \ \ + + \ \ and MathML + + \ \ Exporting to image formats + + \ \ Adding new converters + + \; + + \; + + \; + + \; + + \; + + \; + -- Gitee From ed1a0d601d4f62459741ba656166b721768bb7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E5=90=88=E6=95=A3=C2=B7=E8=B5=9B=E4=B8=81?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E6=9C=A8?= Date: Fri, 21 Nov 2025 19:51:37 +0800 Subject: [PATCH 3/4] wip --- devel/213_10.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/213_10.md b/devel/213_10.md index cf2a93817..e43d9e508 100644 --- a/devel/213_10.md +++ b/devel/213_10.md @@ -3,7 +3,7 @@ ## 测试验证 - 在 Mogan 中打开 `帮助`→`用户手册`→`开始使用`。检查里面的所有链接(3个) - +- `帮助`→`配置`→`用户首选项`。检查里面的所有链接 ## Why 在 Mogan 文档中存在多个无效的内部链接和缺失的文档文件。 -- Gitee From 1f180c5d77cb307bf95cb13b05cbbde89d3942e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E5=90=88=E6=95=A3=C2=B7=E8=B5=9B=E4=B8=81?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E6=9C=A8?= Date: Fri, 21 Nov 2025 19:53:06 +0800 Subject: [PATCH 4/4] wip --- devel/213_10.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devel/213_10.md b/devel/213_10.md index e43d9e508..2c09f638a 100644 --- a/devel/213_10.md +++ b/devel/213_10.md @@ -3,7 +3,7 @@ ## 测试验证 - 在 Mogan 中打开 `帮助`→`用户手册`→`开始使用`。检查里面的所有链接(3个) -- `帮助`→`配置`→`用户首选项`。检查里面的所有链接 +- `帮助`→`配置`→`用户首选项`。检查里面的所有链接(3个),以及其中包含的链接。 ## Why 在 Mogan 文档中存在多个无效的内部链接和缺失的文档文件。 -- Gitee