Generalsetting figure number

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jayeeta
Posts: 1
Joined: Mon Jun 23, 2008 8:13 am

setting figure number

Post by jayeeta »

Hi,
I want to put in some figures. did so using \includegraphics. but for captions if I use \caption it automatically takes the figure numbers to be 1, 2, 3 ... while I want them to appear as 1.1, 1.2, 1.3,...How do I forcefully do it ? I removed the \caption command and just typed in by hand 1.1: this is a caption. but then i cannot change the width of the text-line of the caption.
Any help?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

setting figure number

Post by localghost »

You can customize your captions in many ways with the caption package. This is an example like I do that in my documents.

Code: Select all

\usepackage[font=small,labelfont=bf]{caption}
\captionsetup{figurewithin=section,tablewithin=section}
I'm not sure but I guess that you need version 3.0 or higher. The current version 3.1 is available on CTAN or via remote repository on a MiKTeX system. The documentation of the package gives you more information about customizing your captions.


Best regards and welcome to the board
Thorsten¹
Post Reply