1

So, what i want to do is to replace where it says "Fig. 1" under this table to "Table 1 " in such a way that it will continue numbering each table after that with "Table n+1" NOTE: This table is put in via the function "\includegraphics"

Table 1

  • 9
    Welcome to TeX.SE! Use the table environment instead of figure. – marmot Feb 9 at 17:29
  • 3
    One of the greatest misunderstandings in LaTeX is that users think that a figure must be put inside a figure environment and a table in a table environment. If an image of a table is included, the result displays as table, not as figure. – Christian Hupfer Feb 9 at 17:31
  • 2
    Try \documentclass{article} \usepackage{graphicx} \begin{document} \begin{table}[htb] \centering \includegraphics{example-image-duck} \caption{Results \dots} \label{tab:Results} \end{table} In table~\ref{tab:Results} one can find\dots \end{document}. If you really need to, you can replace the duck image by an image of a table. ;-) – marmot Feb 9 at 17:32
  • 1
    For me \documentclass{article} \usepackage{graphicx} \usepackage{amsmath} \begin{document} \begin{equation} \includegraphics{example-image-duck} \label{eq:Results} \end{equation} In equation~\eqref{eq:Results} one can find\dots \end{document} works. – marmot Feb 9 at 17:50
  • 1
    @Zyzzx: Equations do not have a caption -- I know no math environment that allows this. You can fake it with \begin{equation} E = mc^{2}\label{foo} \intertext{\eqref{foo}: Your description}\end{equation}, but it would not look nice -- and you should not change the question after one feature is solved by piling up another question ... – Christian Hupfer Feb 9 at 17:55
2

You don't say what documentclass you are using; normally the caption in a figure environment is labelled as "Figure" but you say it is given as "Fig.". Put the \includegraphics inside a table environment (but you may need to do something more if the caption starts "Tab." instead of the regular "Table", it depends on your unknown class).

\begin{table}
\centering
\includegraphics{<graphicsfile>}
\caption{Your caption}
\end{table}

If you don't get "Table" at the start of the caption then ask another question, not forgetting to provide a MWE that shows the problem.

0

Instead of including it as graphic, this table can be reproduced in tex:

\documentclass{article}

\begin{document}

\begin{table}
\centering
\begin{tabular}{|c|c|c|c|}
\hline
& All & Naive & Proposed\\
& & Top-k & algorithm\\\hline
\# markers & 370 & 125 & 77\\\hline
\# clusters & -- & -- & 6\\\hline
Distance & 5 km & 5 km & 5 km\\\hline
Zoom level & 13 & 13 & 13\\\hline
\end{tabular}
\caption{text}
\end{table}


\end{document}
0

The "correct" way to go about this is definitely to use the environments semantically, i.e. use the table environment for tables.

However (for the record) it is also possible to change the name in the caption of a figure: this is recorded using figurename, so the literal answer to the original question is:

\renewcommand{\figurename}{Table}
  • Using this in a figure environment, a possible caption will appear in the List of Figures and not in the List of Tables, however... – Christian Hupfer Feb 9 at 20:40
  • True, but if lists of tables/figures are required, that is fixable separately. – rbrignall Feb 9 at 21:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.