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?
General ⇒ setting figure number
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
You can customize your captions in many ways with the caption package. This is an example like I do that in my documents.
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¹
Code: Select all
\usepackage[font=small,labelfont=bf]{caption}
\captionsetup{figurewithin=section,tablewithin=section}
Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10