when I try \usepackage{subcaption} immediately at the beginning of my document I get an error:

Command \c@subfigure already defined

What can I do?


1 Answer 1


It seems that two packages define this counter. Ensure that you only load the required packages. Here, with subcaption load caption before, but not subfigure or subfig, which do a similar job but are not required if you already use subcaption, as mentioned.

Already loading subfig and then subfigure produces this error. MWE:


To sum up: just load the needed package(s), and remove unnecessary packages.

  • Thanks it worked, but first I had to do a Clean All before I called Latex
    – mljrg
    Oct 14, 2012 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .