Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

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

share|improve this question
7  
As far as I can see, there is nothing which prevents you to use the table environment instead of the figure environment. –  Corentin Feb 19 '13 at 23:08
add comment

marked as duplicate by Werner, egreg, hpesoj626, Kurt, Paul Gaborit Feb 19 '13 at 23:42

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 5 down vote accepted

You can use \includegraphics inside table environment.

  \documentclass[12pt,a4paper,oneside]{book}
  \usepackage{graphicx} 
  \usepackage{caption}

  \begin{document}
  \begin{table}[htbp]
  \centering
  \includegraphics[width=16.6cm]{table.png}
  \caption{My caption}
  \end{table}
  \end{document}
share|improve this answer
add comment

As Corentin wrote just above, just use the table environment in place of the figure one:

\begin{table}[htbp]
  \centering%
  \includegraphics[width=16.6cm]{table.png}
  \caption{My caption}
\end{figure}

Not only will this yield "Table 1" instead of "Figure 1", but it will also make sure that the numbering of your tables and figures are separate and consistent and that you can produce lists of them (with \listoftables and \listoffigures).

share|improve this answer
add comment

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