[Tex/LaTex] Create table in Latex, then save it as image in vector graphics format

graphics

I have created a table in Latex, and I would now like to save the table as an image using a vector graphics format such as EPS. Is there a way I can do this?

Best Answer

I'd use the standalone class for this:

\documentclass{standalone}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lcr} \toprule
Left & Center & Right \\ \midrule
1 & 2 & 3 \\ \bottomrule
\end{tabular}
\end{document}

At least on OS X, building to a PDF and using pdf2ps results in a PostScript file that has a BoundingBox directive, which should be enough to include in other documents. Or you can build with regular LaTeX to make a DVI, and convert the DVI to a PS as Sigur recommended.

Related Question