# Continuous table numbering problem

by texx   Last Updated July 12, 2019 12:23 PM - source

I have the following problem:

I'm writing an article. I wrote text, then inserted a table. The first table is labeled as Table I with the caption command. I also have, for instance, two other tables in the Appendix, which are labeled as Table 2 and Table 3.

However, when I insert a table into the text again, it labels the second table in the text as Table 2 and not as Table 4? Unfortunately, the number of tables is not continuously. How can I fix this? Thank you!

Tags :

Here is an example, where my problem is:

Till now, everything is fine, now, i want to add another table in the text, and i get this:

I would like to have that the second table in the text is labeled as Table 4 and not as Table 2.

Here u can find my latex code for it:

\usepackage{caption}

\begin{document}

\section{Introduction}

Text......
\begin{table}[htbp]
\centering
\caption{Table A}
\begin{tabular}{l}
\toprule
A \\
\bottomrule
\end{tabular}
\end{table}

\noindent
Text....

% Table generated by Excel2LaTeX from sheet 'Tabelle1'
\begin{table}[htbp]
\centering
\caption{D}
\begin{tabular}{l}
\toprule
D \\
\bottomrule
\end{tabular}%
\end{table}%

\section{Appendix}
\subsection{Tables}

\begin{table}[htbp]
\centering
\caption{A and B}
\begin{tabular}{ll}
\toprule
A     & B \\
\bottomrule
\end{tabular}
\end{table}

\begin{table}[h!]
\centering
\caption{A, B and C}
\begin{tabular}{lll}
\toprule
A     & B     & C \\
\bottomrule
\end{tabular}