I want to change the caption number from 2.1 to 2.3.1 as my section is 2-3. I got try to use \usepackage{chngcntr} and \counterwithin{table}{section} but due to my section title is 2-3. It will label the '2.3.1' that I want as '2-3.1'. Anyone know how to change?

Section title

Using counterwithin method

  • Just to be clear, you want the table to be numbered 2-3.1 and not 2.3.1, correct?
    – Werner
    Dec 17, 2013 at 7:26
  • i want the table to be numbered as 2.3.1, not 2-3.1. I use the \counterwithin{table}{section} will produce 2-3.1, but i want 2.3.1 :D Dec 17, 2013 at 7:29
  • 1
    Is 2 the section and 3 the subsection and 1 the table?
    – Werner
    Dec 17, 2013 at 7:30
  • erm, i am not really sure, but the 'Eigenvalues and Eigenvectors' is inside chapter 2. So i guess is chapter 2, section 3 and table 1. Dec 17, 2013 at 7:36

1 Answer 1


chngcntr is meant to manage counter resetting from continuous to per-unit and vice versa. However, you're interested in adjusting the counter representation. To do so add


to your document preamble. The default would be to use


which would inherit the hierarchy associated with the section numbering (also, typically, \thechapter.\arabic{section}), and pass it on to the table numbering. For what it's worth, this is a good thing, since the numbering style matches across the hierarchy and is consistent.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .