This question already has an answer here:

Is there any way to find out which packages you have loaded in your preamble are actually being used given the (La)TeX that follows?

I don't believe I'm looking for \listfiles, since as far as I understand that would only return the packages called in the preamble (and whatever packages those packages may have, themselves, called).

What I am seeking to do with this is cut down on unused packages in an unwieldy preamble. I know that I could comment out each package and look for errors, cutting the packages that can be commented out without error. I'd like to know if there is an (at least semi-)automated way to accomplish this same task for when the number of packages is large.

marked as duplicate by yo', Peter Jansson, zeroth, moewe, user2478 Dec 17 '13 at 20:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    It's not really possible in general. – David Carlisle Dec 17 '13 at 19:30

Browse other questions tagged or ask your own question.