[Tex/LaTex] subcaption vs. subfig: Best package for referencing a subfigure

captionscross-referencingfloatssubcaptionsubfloats

On this question, a comment by Martin H says: that one should forget about the subfigure and subfig packages and use subcaption. As subfig replaces subfigure, no argument there.

I am currently using subfig for displaying my subfigures and quite content with it. So I am wondering, what the advantages of using subcaption instead would be or if and why the use of subcaption is generally preferable to subfig.

Best Answer

subfig is not working properly with hyperref. The author of the caption package wrote here:

Please note that the hyperref support within the subfig package is broken. You could give my subcaption package a try instead.

Internet or Usenet search for subfig+hyperref would show compatibility and functionality issues, I guess we don't need to create an example for it here.