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.

I have a question regarding LaTeX .. I have a table from an excel file which I print screened and posted as a figure in LaTeX. However, I want to make it a table. Problem is, the particular table has a lot of values in it so making it into a table manually is pretty tedious.

Is there a way to be able to reference an image as a table instead?

share|improve this question
add comment

migrated from stackoverflow.com Jul 18 '11 at 12:34

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 18 down vote accepted

You can put \includegraphics... into a table floating environment:

\begin{table}
  \caption{A stunning table}
  \label{tbl:excel-table}
  \includegraphics[width=\linewidth]{excel-table}
\end{table}

The distinction between table and figure is a semantic one—separate counters etc., but technically, they work the same.

share|improve this answer
add comment

You can save your excel file as .csv file(comma delimited). I found a converter( a CSV to LaTeX file converter) It should work.

If you want to plot a graph from excel .csv file. u could follow http://en.wikibooks.org/wiki/LaTeX/Tips_and_Tricks#Graphs_with_gnuplot

share|improve this answer
    
Thanks! Ill try that later and see if it works –  user488792 Jul 18 '11 at 11:54
add comment

Use the \captionof command (it is included in the caption package).

\begin{figure}[htb]
\centering
\includegraphics[width=0.7\linewidth]{./img/some_image.png}
\captionof{table}[foo]{foobar}
\label{img:foobar}
\end{figure}
share|improve this answer
3  
I would not recommend this, because this could disturb caption styling, hyperlinks etc. –  Axel Sommerfeldt Jul 19 '11 at 7:09
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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