GeneralChange Dot in Equation, Figure and Table Numbers to Hyphen

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
joklu
Posts: 1
Joined: Mon Nov 28, 2011 4:39 pm

Change Dot in Equation, Figure and Table Numbers to Hyphen

Post by joklu »

How can I change the dot into a dash in figure, table, and equation numbers? So instead of "Figure 3.2" I would like "Figure 3–2".

Thanks

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Change Dot in Equation, Figure and Table Numbers to Hyphen

Post by localghost »

If you yet do not present a minimal example, tell us at least the used document class.


Best regards and welcome to the board
Thorsten
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Change Dot in Equation, Figure and Table Numbers to Hyphen

Post by Stefan Kottwitz »

Hi Joklu,

welcome to the board!

In a standard class, such as book or report, this redefinition works:

Code: Select all

\renewcommand*{\thefigure}{\thechapter-\arabic{section}}
Stefan
LaTeX.org admin
Post Reply