Is there any tool that allows me to analyze/see/display macro dependencies?

To be clear: After


I'd like to get that \a uses \b and \c and that \b uses \x and \c, best nicely displayed. And to make me entirely happy: the tool should also tell me that \a was defined in file X at line Y...


Slightly editing my answer to your other related question, Q: Loop over all tokens in the body of a macro.

\newcommand\dependency[1]{The macro \string#1 contains these dependencies:%
  \ifcat\relax\noexpand#1 \string#1\fi
\def\a{ blah \b de-blah-blah \c}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.