LaTeX - insert a PDF table as an image in a table environment

On of the most painful (at least IMHO) things to create in LaTeX are complex or big tables. It is easier to make them in a spreadsheet software (Libreoffice Calc, MS Excel or even Word) and export them as PDFs (either File->Export as PDF, File->Save as or using PDFCreator). It is possible to insert PDFs as images in figure environment like this:

\begin{figure}[!ht]
 \begin{center}                                      
   \includegraphics[width=0.85\textwidth]{images/table-frameworks-overlap.pdf}                                                                  
 \end{center}
 \caption{Similarities and overlap between the two PIM frameworks}
 \label{fig:table-frameworks-overlap}
\end{figure}

However, this caption starts with the word "Image X: ..." while I want to have a caption stating with "Table X: ...".

It is possible to insert a PDF in a table environment as well like this:

\begin{table}[ht]
  \caption{A table}
  \centering
  \begin{tabular}{c}
    \begin{center}                                                                         
      \includegraphics[width=0.85\textwidth]{images/table-studies.pdf} 
    \end{center}     
  \end{tabular}
  \label{tab:}
\end{table}

If a PDF needs to be cropped you can do it like this:

                                                       %left, bottom, right, top
\includegraphics[width=0.85\textwidth, clip=true, trim=0cm 0cm 0cm 0cm]

You might also need the following package:

\usepackage{graphicx}



Trackbacks

Trackback specific URI for this entry

This link is not meant to be clicked. It contains the trackback URI for this entry. You can use this URI to send ping- & trackbacks from your own blog to this entry. To copy the link, right click and select "Copy Shortcut" in Internet Explorer or "Copy Link Location" in Mozilla.

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Can you please write (or copy/paste) this text in the field below: i h a t e s p a m