[0631] 移除 tmkeywords 自定义宏并在 LaTeX 导出中改用标准原生 inline 宏#3561
Open
JackYansongLi wants to merge 2 commits into
Open
[0631] 移除 tmkeywords 自定义宏并在 LaTeX 导出中改用标准原生 inline 宏#3561JackYansongLi wants to merge 2 commits into
JackYansongLi wants to merge 2 commits into
Conversation
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.
[0631] 移除 mho 自定义宏并在 LaTeX 导出中改用标准 amssymb / latexsym 宏包支持
相关文档
任务相关的代码文件
TeXmacs/progs/convert/latex/latex-texmacs-drd.scmTeXmacs/plugins/latex/progs/convert/latex/latex-texmacs-drd.scmTeXmacs/progs/convert/latex/latex-define.scmTeXmacs/plugins/latex/progs/convert/latex/latex-define.scmTeXmacs/tests/0631.scmTeXmacs/tests/tex/0631_mho_macro_export.texTeXmacs/tests/tmu/0631.tmu如何测试
确定性测试(单元与集成测试)
非确定性测试(文档验证)
\mho。.tex文件的导言区中正确包含了\usepackage{amssymb}或\usepackage{latexsym},且不再产生自定义的旋转\omega的\renewcommand{\mho}{...}宏。如何提交
提交前执行以下最少步骤:
一个 PR 至少分为两个 commit:
devel/0631.md任务文档What
移除在 LaTeX 导出中,对倒转的 Omega 算子
\mho符号通过手写\rotatebox旋转\omega所生成的自定义重新定义宏,直接使用 LaTeX 标准宏包amssymb或latexsym中内置的原生\mho符号。Why
在 TeXmacs 以往的 LaTeX 导出中,
\mho符号被作为自定义前言命令进行了手写转换定义:这给导出的 LaTeX 代码带来了不必要的自定义宏污染,且非常不符合現代 LaTeX 用户的排版规范。其实在标准 LaTeX 环境中,
\mho符号原生包含在标准的amssymb与latexsym宏包里(已在latex-symbol-drd.scm进行了内置符号映射注册)。通过移除自定义宏并直接依赖于包管理器,可以使导出的 LaTeX 代码极度纯净且完全原生。How
latex-texmacs-drd.scm的latex-texmacs-preamble-command%中移除mho,使其不再被判定为自定义前置命令。latex-define.scm的latex-texmacs-preamble列表中删去对mho宏的手写转译定义。\mho时,由于其在latex-symbol-drd.scm中已归属latex-latexsym-symbol%,导出时将自动并在导言区载入\usepackage{latexsym}(或由于其他符号载入amssymb),并直接原生输出\mho。