Graphics, Figures & TablesCaptioning a figure as a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
delja
Posts: 2
Joined: Sun Jan 06, 2013 5:51 pm

Captioning a figure as a table

Post by delja »

Hi all,

I have a quite large table as a *.png file. Is there a way to use include this table as a picture in my document, but having the the caption "Table X" instead of "Figure X"? Because the table is quite large I don't want to remake it in latex.

Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Captioning a figure as a table

Post by cgnieder »

Hi delja,

just place it in a {table} environment:

Code: Select all

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{table}[ht]
 \caption{A table caption}
 \includegraphics{mypicturefile.png}
\end{table}
\end{document}
Regards
site moderator & package author
delja
Posts: 2
Joined: Sun Jan 06, 2013 5:51 pm

Re: Captioning a figure as a table

Post by delja »

ohh of course!!

thank you!
Post Reply