This question already has an answer here:
- How to refer a figure as a table? 3 answers
I have a table that I would like to insert like a figure, and I want that in the caption appears "Table 1" instead of "Figure 1". This in one example of what I did:
\documentclass[12pt,a4paper,oneside]{book}
\usepackage{graphicx}
\usepackage{caption}
\begin{document}
\begin{figure}[htbp]
\centering
\includegraphics[width=16.6cm]{table.png}
def\tablename{Table 1}{My caption}
\end{figure}
\end{document}
But it doesn't work...
tableenvironment instead of thefigureenvironment. – Corentin Feb 19 at 23:08