When trying to compile my report, I receive an error related to the subcaption package (which I load in my preamble):
! Package subcaption Error: This package can't be used in cooperation (subcaption) with the subfig package.
After some research, I found that the subcaption and subfig packages cannot be used at the same time. The problem is that I don't load subfig explicitly anywhere in my preamble. It must get loaded somehow, but I don't know where in my input file. How can I find that out?
logfiles lists which files are loaded. – Andrew Swann Nov 27 '13 at 13:12subfigis loaded there.You can use the approach to prepare Minimal working examples to find the cause.
– Johannes_B Nov 27 '13 at 13:34subfigin your input document, it may still be required (unbeknownst to you) in the class file and/or in one of the packages you load. Strategy? Divide & conquer: place the following code before\documentclassin your input file:\makeatletter \newcommand\CheckIfSubfigLoaded{\@ifpackageloaded{subfig}{\@latex@warning{The subfig package has been loaded}}{}} \makeatother. Then call the\CheckIfSubfigLoadedsomewhere in your preamble. If you get my warning, it means the package has been already been loaded. That way you can locate wheresubfigis called . – jub0bs Nov 27 '13 at 21:32