Table numbers with Latex
Solved
Hello everyone,
I would like to ask you the following question: how to number tables with LaTeX?
Thank you in advance for your help.
I would like to ask you the following question: how to number tables with LaTeX?
Thank you in advance for your help.
Configuration: Windows XP Internet Explorer 6.0
5 answers
-
It is enough to add (\caption{"the title of the table"}) before (\end{table})
example:
\begin{table}
\begin{center}
\begin{tabular}
Your table
\end{tabular}
\end{center}
\caption{your caption}
\end{table}-
The issue of numbering is one of style, not of the caption.
The caption instruction allows you to create a caption that will then be processed by LaTeX and formatted according to the style of your LaTeX document.
Even though it works, numbering the table in the caption goes against the style you are using and is not in keeping with the spirit. If you have numbered your table in the style, you have gone against the LaTeX philosophy. This is especially noticeable if you need to move your table to another section: with your method, you have to correct the caption, whereas if you work with the style, you don’t have to do that.
In fact, in LaTeX, we don’t manually number anything, whether it’s with \section, \subsection, references to labels, or figures… LaTeX takes care of it. This prevents forgetfulness and errors in (re)numbering as well. ;-) -
-
-
-
Tables are usually numbered automatically. It all depends on the style you are using (see documentclass and the sty/cls files you are using).
Good luck -
Thank you mamiemando,
my problem is that instead of starting with begin table I started directly with begin tabular that's why I didn't get the table numbers. -
Oh yes, that's it, everything is in order?
-