Skip to content

[0616] 支持在数学模式下和 LaTeX 导入时对 dx, dy, dz, dr, d rho, d theta 进行自动转换#3462

Merged
da-liii merged 8 commits into
mainfrom
jl/200_27/0616
May 22, 2026
Merged

[0616] 支持在数学模式下和 LaTeX 导入时对 dx, dy, dz, dr, d rho, d theta 进行自动转换#3462
da-liii merged 8 commits into
mainfrom
jl/200_27/0616

Conversation

@JackYansongLi
Copy link
Copy Markdown
Contributor

@JackYansongLi JackYansongLi commented May 21, 2026

概述

  • 微分算子自动转换:在数学模式下连续敲击 dxdydzdr 将自动转换为直立微分符号 <mathd> 与其对应的变量组合(如 <mathd>x),避免了连续两个字母被识别为多字母算子的排版问题。
  • 常用希腊字母支持:支持了对希腊字母 rho (d rho) 和 theta (d theta) 形式 of 的微分自动转换,并完善了 Tab 键多级变体循环定义(补全了 "d j var var"<mathd><jmath> 的映射,消除了红字占位符问题)。
  • 外部 LaTeX 代码导入转换:实现了在导入(或通过“Magic Paste”粘贴)外部 LaTeX 代码时,将其中满足边界条件的 dxdydzdrd\rhod\theta 格式自动转换为对应的 TeXmacs 微分符号和变量组合(中间带空格的除外),彻底省去了手动调整的麻烦。
  • 自动化集成测试:编写了针对 LaTeX 文档导入以及 Markdown 内嵌 LaTeX 公式片段的自动化集成测试。创建了包含各种微分公式变体的测试文件 0616_differential_test.tex0616_differential_test.md,并通过自动化测试运行器 0616.scm 完成了 100% 验证(8 项检查全部通过)。
  • 完全保持可编辑性:所有自动纠正或导入转换后的字符均为独立的符号/字符节点,用户依然可以直接在两字符中间插入空格、删除或进行任意正常的后续编辑。

@JackYansongLi JackYansongLi changed the title [0616] support automatic mathd conversion for dx, dy, dz, dr, d rho, and d theta [0616] 支持在数学模式下对 dx, dy, dz, dr, d rho, d theta 进行自动转换 May 21, 2026
@JackYansongLi JackYansongLi changed the title [0616] 支持在数学模式下对 dx, dy, dz, dr, d rho, d theta 进行自动转换 [0616] 支持在数学模式下和 LaTeX 导入时对 dx, dy, dz, dr, d rho, d theta 进行自动转换 May 21, 2026
Copy link
Copy Markdown
Contributor

@da-liii da-liii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@da-liii da-liii merged commit 728b1e8 into main May 22, 2026
1 check passed
@da-liii da-liii deleted the jl/200_27/0616 branch May 22, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants