[texhax] listmacros?

Reinhard Kotucha reinhard.kotucha at web.de
Tue May 31 00:27:11 CEST 2011

On 2011-05-30 at 18:23:08 +0000, Nitecki, Zbigniew H. wrote:

 > I suspect the following does not exist, but wonder if it does or if
 > some expert might suggest how to make it.
 > Background: I have a pair of huge files containing many personally
 > designed macros, which I used extensively in writing two books, and
 > now use almost reflexively.  When I write a relatively short paper
 > in latex, I can of course append the two files to the paper when I
 > send it out, but often I use a very small subset of the macros in
 > these files.
 > So I wonder if there is a command similar to the "listfiles"
 > command (which lists the files used when compiling a document) but
 > listing the macros used---either identified by package, or even
 > better, providing a list of \newcommand's defining them.  That way
 > I could create a far smaller macro list custom designed for the
 > paper at hand, and use it in place of the two large files when
 > submitting a paper for publication or for the ArXiv.

I'm not aware of a convenient TeX solution.  But maybe you can enable
\tracingmacros and write a script which examines the .log file.


Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.

More information about the texhax mailing list