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
1dvisvgm --eps file.eps --output=file.svgSteps to convert a latex table to svg
- Use standalone package to create/build your table
1\documentclass{standalone} 2\usepackage{xspace} 3\usepackage{bold-extra} 4\begin{document} 5 \begin{tabular}{ |c|c|c| } 6 \hline 7 cell1 & cell2 & cell3 \\ 8 cell4 & cell5 & cell6 \\ 9 cell7 & cell8 & cell9 \\ 10 \hline 11 \end{tabular} 12\end{document} - Convert pdf to svg using dvisvgm
1dvisvgm --pdf table.pdf --output=table.svg
- Use standalone package to create/build your table