Graphics, Figures & TablesProblem with caption2 and subfig

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ajaleelp
Posts: 1
Joined: Wed Mar 23, 2011 7:29 am

Problem with caption2 and subfig

Post by ajaleelp »

Hi all..
Pleae help me out with this...The document class i am instructed to use have \RequirePackage[hang]{caption2} to take care of figure captions.But i very badly need to use the subfig package in my work (and hence the caption package).What should i susbtitute for the above requirepackage for this to work?
Thanking u in advance
Jaleel

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Problem with caption2 and subfig

Post by Stefan Kottwitz »

Hi Jaleel,

welcome to the board!
The caption2 package is obsolete. Use the caption package instead, it's the successor and written by the same author.

Stefan
LaTeX.org admin
User avatar
sommerfee
Posts: 503
Joined: Mon Apr 09, 2007 4:20 pm

Problem with caption2 and subfig

Post by sommerfee »

If changing caption2 to caption is not an option, you could load the subfig package with the option "caption=false":

Code: Select all

\usepackage[caption=false]{subfig}
Using this option the subfig package should work with the caption2 package. (But I never have tested this.)

Another alternative would be using the (obsolete) subfigure package instead of subfig since the subfigure package works fine with caption2.

(But of course using caption instead of caption2 is the best way to go.)
Post Reply