When I try to typeset with both the packages subcaption and breqn, I get the following error:

! Package caption Error: The `subcaption' package does not work correctly(caption) in compatibility mode.See the caption package documentation for explanation.Type H for immediate help.... \begin{document}

However, if I deactivate either package, the document can typeset.

My preamble is as follows



 convert #1 \OutputFile


\begin{tabular}{l c r}
First Middle Surname




Let me know if you wanna see file listing

  • 4
    I'm voting to close this question as off-topic because it is about a bug which has been fixed. – LaRiFaRi Jul 18 '15 at 23:06

Yes, for a reason I don't understand yet the combination of float and breqn package is incompatible to the (sub)caption package:



will issue the warning

Package caption Warning: \caption will not be redefined since it's already
(caption)                redefined by a document class or package which is
(caption)                unknown to the caption package.

which is obviously rubbish since the caption package should be aware about the redefinition of \caption done by the float package.

As a workaround one can save and restore the definition of \caption when loading the float package:


As long as the caption package is used this should not make any harm (but outsmart the compatibility test of the caption package) since the caption package will redefine \caption anyway later on.

I will do further examination on week-end and report.

The murder is out (2012-08-25):

The breqn package redefines the LaTeX kernel macro \@ifstar in a way which is incompatible to at least one macro defined by the caption package. Since this macro will be used for the compatibility test this test could fail even if no incompatibility is actually present. I'll fix that in the next release of the caption package.

Update (2013/01/09):

The next release 3.3 of the caption package is out where this bug was fixed. Thanks for your patience.

| improve this answer | |

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