[0637] 移除 tdatetext 自定义宏并在 LaTeX 导出中改用标准原生 inline 宏#3568
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.
[0637] 移除 tdatetext 自定义宏并在 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-elsevier.scmTeXmacs/plugins/latex/progs/convert/latex/tmtex-elsevier.scmTeXmacs/tests/0637.scmTeXmacs/tests/tex/0637_tdatetext_macro_export.texTeXmacs/tests/tmu/0637.tmu如何测试
确定性测试(单元与集成测试)
非确定性测试(文档验证)
.tex文件的导言区中不再产生自定义的\newcommand{\tdatetext}{...}宏,而是直接原生输出为标准的\tnotetext及其内部加粗标识Date:。如何提交
提交前执行以下最少步骤:
一个 PR 至少分为两个 commit:
devel/0637.md任务文档What
移除在 LaTeX 导出中,对 Elsevier 日期标志(
tdatetext)所生成的自定义宏,直接在正文中原生输出标准的\tnotetext标记并在内容中添加Date:前缀。Why
在 TeXmacs 以往的 LaTeX 导出中,定义了一个自定义前置命令:
这不仅造成了导言区污染,也使得非
elsarticle模板在使用类似转换时产生代码耦合。其实直接在翻译时将\tdatetext[label]{text}转换为原生的\tnotetext[label]{Date: text},即可完全免除在 LaTeX 导言区定义该宏。How
tmtex-elsevier.scm中的tmtex-author-date-label,使其直接输出原生的tnotetext,内容部分拼接"Date: "并加粗,不通过(tdatetext ...)。latex-texmacs-drd.scm的latex-texmacs-preamble-command%中移除tdatetext。latex-define.scm的latex-texmacs-preamble列表中删去对tdatetext宏的自定义转译定义。