I have a table and am trying to include a caption and label. The caption is printed but with the wrong number. It is my first table in the document, but latex uses the number of my Chapter (3.1) for the table. I tried fixing it by manipulating the counter, but it will only change between 3.1 and 3.2.
This is my code:
\setcounter{table}{0}
\begin{table}[h!]
\begin{tabu}to 0.8\textwidth { | X[c] || X[c] | X[c] | }
\hline
Measure & Min & Max \\
\hline \hline
One & 1 & 26 \\
\hline
Two & 6.353 & 2.2 \\
\hline
Three & 0 & 8.46 \\
\hline
Four & -16.86 & -2.94 \\
\hline
\end{tabu}
\caption{Statistics of indices}
\label{table:1}
\end{table}
Can somebody help? I've been fighting with this table for hours and would really appreciate tips!
Table 3.1for the first table in chapter 3 is correct. What do you expect instead? – user187802 May 11 '19 at 12:05\counterwithout{table}{chapter}to your preamble. – Bernard May 11 '19 at 12:14Table 3.1and starting the counting new for each chapter. – user187802 May 11 '19 at 12:25\centeringjust after\begin{table}. – Bernard May 11 '19 at 12:26\centering. – Bernard May 11 '19 at 13:04