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 : tables number


Answers 1


Here is an example, where my problem is:

enter image description here

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

enter image description here

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}
  \label{tab:addlabel}
\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}%
  \label{tab:addlabel}%
\end{table}%


\section{Appendix}
\subsection{Tables}

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

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



\end{document}
texx
texx
July 12, 2019 12:01 PM

Related Questions


Table error: Missing number treated as zero

Updated August 27, 2018 13:23 PM

Changing column-wise authors to row-wise approach

Updated March 18, 2017 19:23 PM