GeneralHow to change caption style in figure ?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dp_
Posts: 6
Joined: Sat Jun 07, 2008 8:14 pm

How to change caption style in figure ?

Post by dp_ »

Hi,

I have little problem. In default Latex generate caption from style "Figure" + index of figure in document. I want to have different style, exactly "Figure" + number of section + index of figure in this particular section.

I have been searching Internet trying to find solution, but I failed.

Can anybody help me with this ? I will be grateful for any help.

Best regards

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

How to change caption style in figure ?

Post by Stefan Kottwitz »

Hi,

one possible solution is provided by the chngcntr package:

Code: Select all

\usepackage{chngcntr}
\counterwithin{figure}{section}
Stefan
LaTeX.org admin
dp_
Posts: 6
Joined: Sat Jun 07, 2008 8:14 pm

Re: How to change caption style in figure ?

Post by dp_ »

Hi Stefan,

Firstly, big thanks for rapid time of answer :)

Secondly, it works great! I am very grateful for help.

Best regards.
Post Reply