Use SVG vector graphics in LaTeX

LaTeX can use .svg SVG vector graphics files directly without conversion via LaTeX svg package. If your LaTeX .sty doesn’t work with svg package, you can convert SVG to EPS instead.

Example

This minimal working example of using .svg directly in LaTeX assumes file myfig.svg.

\documentclass{article}
\usepackage[clean]{svg}

\begin{document}

\begin{figure}
    \centering
    \includesvg[width=0.6\columnwidth](myfig)
\end{figure}

\end{document}

Tags:

Categories:

Updated:

Leave a Comment