[0634] 移除 tmpacs 自定义宏并在 LaTeX 导出中改用标准原生 inline 宏#3564
Open
JackYansongLi wants to merge 2 commits into
Open
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.
[0634] 移除 tmpacs 自定义宏并在 LaTeX 导出中改用标准原生 inline 宏
相关文档
任务相关的代码文件
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/progs/convert/latex/tmtex.scmTeXmacs/plugins/latex/progs/convert/latex/tmtex.scmTeXmacs/tests/0634.scmTeXmacs/tests/tex/0634_tmpacs_macro_export.texTeXmacs/tests/tmu/0634.tmu如何测试
确定性测试(单元与集成测试)
非确定性测试(文档验证)
.tex文件的导言区中不再产生自定义的\newcommand{\tmpacs}{...}宏,而是直接原生输出为标准的\textbf{P.A.C.S. subject classification:}。如何提交
提交前执行以下最少步骤:
一个 PR 至少分为两个 commit:
devel/0634.md任务文档What
移除在 LaTeX 导出中,对 PACS 主题分类(
tmpacs)所生成的自定义宏,直接在正文中原生输出标准的加粗分类标签。Why
在 TeXmacs 以往的 LaTeX 导出中,
tmpacs被定义为自定义前导命令:这给导出的 LaTeX 代码带来了不必要的自定义宏污染,也不符合 LaTeX 用户的直觉与排版规范。通过将其转换为标准的 inline 翻译加粗标记(
\textbf{P.A.C.S. subject classification:}),可以使导出的 LaTeX 代码极度纯净且完全原生。How
tmtex.scm中的tmtex-abstract-pacs,使其直接输出标准加粗本地化文字,不通过(tmpacs)。latex-texmacs-drd.scm的latex-texmacs-preamble-command%中移除tmpacs。latex-define.scm的latex-texmacs-preamble列表中删去对tmpacs宏的自定义转译定义。