# How do i change “Fig 1” to “Table 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"

• Welcome to TeX.SE! Use the table environment instead of figure. – marmot Feb 9 at 17:29
• 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. – user31729 Feb 9 at 17:31
• 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
• For me \documentclass{article} \usepackage{graphicx} \usepackage{amsmath} \begin{document} $$\includegraphics{example-image-duck} \label{eq:Results}$$ In equation~\eqref{eq:Results} one can find\dots \end{document} works. – marmot Feb 9 at 17:50
• @Zyzzx: Equations do not have a caption -- I know no math environment that allows this. You can fake it with $$E = mc^{2}\label{foo} \intertext{\eqref{foo}: Your description}$$, but it would not look nice -- and you should not change the question after one feature is solved by piling up another question ... – user31729 Feb 9 at 17:55

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>}
\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.

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}


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... – user31729 Feb 9 at 20:40
• True, but if lists of tables/figures are required, that is fixable separately. – rbrignall Feb 9 at 21:16