Transform a tex source so that all macros are replaced by their definition

前端 未结 5 1496
说谎
说谎 2021-01-18 11:10

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

5条回答
  •  花落未央
    2021-01-18 11:37

    TeX has a lot of difference tracing tools built in, including tracing macro expansion. This only traces live macros as they are actually expanded, but it's still quite useful. Full details in The TeXbook and probably elsewhere.

    When I'm trying to debug a macro problem I generally just use the big hammer:

    \tracingall\tracingonline
    

    then I dig in the output or the .log file for what I want to know.

提交回复
热议问题