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

I'm writing an article using the revtex4 document class, but it appears to be incompatible with subfig (which also seems to be loading caption). How can I title some subfigures in my revtex4 document?

The following minimal example shows how just loading subfig breaks the formatting of figures as defined by the document class.

% Uncomment the following line to see the problem

\caption{Some dummy title for my figure which should be long enough 
         to occupy at least a couple of lines, and maybe even a bit
         more. That's good.}

Furthermore, the caption package complains with the following 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.
See the caption package documentation for explanation.

So the question is, how could I solve this problem? Is there an alternative to subfig which I could use together with revtex4?

share|improve this question
up vote 7 down vote accepted

You could load the subfig package with the option caption=false:, e.g.:


This prevents loading of the caption package. (caption3.sty will still be loaded, but this does not make harm since this file only provides some macros needed by the subfig package, especially it does not alter any captions.)

See subfig package documentation for details.

share|improve this answer
Nice! That does seems to solve the problem. – Juan A. Navarro Jul 5 '11 at 15:09
Can you please type a minimal working example? Same problem, your solution isn't working. Why RevTex makes it so difficult, I don't know. – user1936752 Jun 19 '15 at 7:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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