I have a complex excel table that I would like to include in my paper. I have converted the table as a pdf file and I am including into my paper as follows:
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\begin{table}[H]
\begin{center}
\includepdf{tables/table1.pdf}
\end{center}
\end{table}
\end{document}
Unfortunately, this table suffers from two problems:
- The table is positioned on top of existing text.
- The table is not centered as I expected. Instead, left justified. Would some LaTeX gurus please explain to me how:
- To properly add a pdf table to LaTeX.
- How to make sure that LaTeX treat the table as a table (for reference and caption purpose).
- Am I doing this right? It seems that most forums suggest that I use tools such as
Excel2LaTeXto convert my excel file to LaTeX code. In my view, this will make the task more complex as I need to change the table several time and formatting is time-consuming.
\includegraphicsfrom thegraphicxpackage is more suitable. Also, the\centeringcommand instead of acenterenvironment will reduce extra whitespace above and below the PDF. TheHposition for a table is likely being ignored, since it's not a standard position, and even the standardhposition is often changed toht. – Mike Renfro Mar 31 '17 at 03:07