2

I include an svg I created with matplotlib (see here how - at the bottom) using pyplot.savefig("test.svg") in my latex document.

\documentclass{beamer}
\usepackage{graphicx}
\usepackage{svg}

\begin{document}
\frame{
\includesvg[pdf,width=\textwidth]{test}
}
\frame{
{\Large\includesvg[eps,width=.5\textwidth]{test}}
}
\end{document}

Whatever I try, I cannot change the size of the fonts in the svg. Is it possible that way? What do I do wrong? I would rather like to use python etc. because using a gui like inkscape is for graphs not the method of choice.

1
  • I tried to answer your question. Did you solve the issue in another way?
    – Keks Dose
    Commented Aug 3, 2015 at 6:43

1 Answer 1

1

As far as I understand the manual of the svg package, you need a special kind of svg file which has a text component. Inkscape can produce this kind of file, but probably not matplotlib. The svg manual says:

The work by Johan B. C. Engelen has further enhanced the ability of Inkscape to split an svg into a text component that can be imported into L A TEX, and an image component that can be imported as a pdf . 1 Consequently it is now possible to include an svg into a LaTeX document where the text within the svg has been rendered natively by LaTeX.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .