TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

closed as off-topic by LaRiFaRi, Martin Schröder, Papiro, Christian Hupfer, Sean Allred Jul 19 '15 at 1:09

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

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.

share|improve this answer
Thanks a bunch :) – Kirbies Aug 28 '12 at 10:17

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