LaTeX, by default, uses two-part style of figure, table and equation numbers (like Figure 1.3). I used to have 3-part numbers (chapter.section.object number). To achieve this in LaTeX, I use the following code (example for table):
However, when I try to put table before first section begins, it returns zero as section number (table number looks like 1.0.5). This is undesired behavior, I want to have two-part numbering before first section (like 1.5).
Now when table (figure, equation) is before chapter beginning, it has 1-part number. After \chapter, but before \section it has 2 parts. After \section are 3 parts.