Convert pdf/eps files to svg
I had to convert a few figures and tables written in LaTeX for a poster. Converting the figures (in eps/pdf
formats) was easy and could be done with dvisvgm
. To convert tables into SVG, I first created PDFs of the tables using the standalone LaTeX package, then converted them to SVG.
- Steps to convert an eps file to svg using dvisvgm
dvisvgm --eps file.eps --output=file.svg
- Steps to convert a latex table to svg
- Use standalone package to create/build your table
\documentclass{standalone} \usepackage{xspace} \usepackage{bold-extra} \begin{document} \begin{tabular}{ |c|c|c| } \hline cell1 & cell2 & cell3 \\ cell4 & cell5 & cell6 \\ cell7 & cell8 & cell9 \\ \hline \end{tabular} \end{document}
- Convert pdf to svg using dvisvgm
dvisvgm --pdf table.pdf --output=table.svg
- Use standalone package to create/build your table
Enjoy Reading This Article?
Here are some more articles you might like to read next: