转换tex源,以便所有宏都被其定义替换 [英] Transform a tex source so that all macros are replaced by their definition
本文介绍了转换tex源,以便所有宏都被其定义替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以看到TeX预处理器"的输出,即e.完成实际输出之前的中间步骤,但是替换了所有用户定义的宏,只剩下了TeX原语的一个子集?
Is it possible to see the output of the TeX ‘pre-processor’, i. e. the intermediate step before the actual output is done but with all user-defined macros replaced and only a subset of TeX primitives left?
还是没有这样的中间步骤?
Or is there no such intermediate step?
推荐答案
写
\edef\xxx{Any text with any commands. For example, $\phantom x$.}
然后在日志文件中输出
\show\xxx
或用于文档中的输出
\meaning\xxx
这篇关于转换tex源,以便所有宏都被其定义替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文