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

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

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: 10348
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