Graphics, Figures & TablesCaption Numbering: Changing 1.1 to 1-1?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fionagee
Posts: 2
Joined: Thu Aug 04, 2011 11:47 am

Caption Numbering: Changing 1.1 to 1-1?

Post by fionagee »

Hi,

I was wondering if there is a way to change the appearance of the figure and table numbering in captions from, for example, Figure 1.1 to Figure 1-1?

Thanks!
Fiona

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

Caption Numbering: Changing 1.1 to 1-1?

Post by Stefan Kottwitz »

Hi Fiona,

welcome to the board!

You could redefine the presentation of the figure and table counter, such as

Code: Select all

\renewcommand{\thefigure}{\thechapter-\arabic{figure}}
\renewcommand{\thetable}{\thechapter-\arabic{table}}
Stefan
LaTeX.org admin
fionagee
Posts: 2
Joined: Thu Aug 04, 2011 11:47 am

Re: Caption Numbering: Changing 1.1 to 1-1?

Post by fionagee »

Hi Stefan,

Thanks, that worked perfectly! :) I just started using LaTeX yesterday and it's so much fun to use/learn after years of struggling with Word! :D

Fiona
Post Reply