LaTeX table and figure numbering style

Posted: 18th July 2011 by Tim in LaTeX
Tags: , , , , , , , , , , ,

In LaTeX, by default, tables are numbered Table 1, Table 2, Table 3 an so on (or Table 1.1, Table 1.2, Table 2.1, etc if you’re using chapters). Sometimes you may want to change the way these are numbered. The solution is very similar to changing list numbering styles using different keywords.

Like enumeration lists, we can change the style using the `\renewcommand` command. For tables, we want to renew the `\thetable` command, using the `table` counter. For figures, we want to renew the `\thefigure` command using the `figure` counter. Like enumeration lists, we can use the following numbering styles:

• \alph{counter}: lowercase letters
• \Alph{counter}: uppercase letters
• \arabic{counter}: numbers
• \roman{counter}: lowercase roman numerals
• \Roman{counter}: uppercase roman numerals

Confused? Let’s look at an example. Let’s say we want to have our tables numbered Table A, Table B, … and figures numbered Figure I, Figure II and so on. We simply need to add the following to the top of the document before `/begin{document}`:


Easy.

Thanks for excellent tips. Simple and elegant solution, work perfect!

2. rose says:

Thanks for the tip. Simple and work perfectly.

3. Geon says:

Simple but powerful!
Was searching through different sites, and finally, I got a solution!
THanks alot..

4. Shannon says:

Thanks for the concise explanation. Is there anyway to ensure that the counter also indicates the chapter. For my dissertation I am required to set figures to an arabic counter and tables to a roman one. The arabic counter includes the chapter number, then the figure number and goes something like this: 1.1, 1.2, etc. Whereas the roman one just resets at the start or each chapter i, ii, iii, etc. Is there anyway to make the roman counter go i.i, i.ii, etc?

Thank you!

5. Shannon says:

Never mind, the solution was right in front of me, I just hadn’t been paying attention: \renewcommand*\thetable{\roman{chapter}.\roman{table}}