5

Complicated tables need to be included in my thesis, but it is easier to put images of them obtained through scanning from a book. Can I insert an image, but have it count as a table?

One approach I thought of to achieve this would be to make a 1x1 table and put a figure in the cell. Are there any other ways to accomplish my goal?

13

You can put everything you want into a table environment, e.g.

\documentclass{article}
\usepackage{graphicx}
\usepackage{mwe}
\begin{document}
\begin{table}
  \includegraphics{example-image}
  \caption{This is a table}
\end{table}
\end{document}

picture used as table

1

You asn also call capt-of package into service.

\documentclass{article}
\usepackage{graphicx,capt-of}
\begin{document}
\begin{figure}
\includegraphics{exapmple-image}
\captionof{table}{Table caption}
\end{figure}
\end{document}
  • capt-of is meant to use a \caption outside of a float. Your solution to this particular problem doesn't seem like a good idea, as a figure can overtake a table but in this example your figure-type float doesn't contain a figure and you don't want it to overtake a table. – Skillmon Aug 10 '18 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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