[Tex/LaTex] How to import SVG or EPS files with LaTeX legends on Inkscape

epsinkscapeMATLABmatplotlibsvg

I usually plot my functions using Matlab or Python (matplotlib) and set labels with LaTeX. Occasionally, the plots have some rendering problem and I edit their SVG or EPS files using Inkscape. The problem is that Inkscape imports the LaTeX symbols using some other fonts and I missed the original text. Is there a way to import LaTeX correctly? I'm looking something like this post.

Best Answer

The simplest way that worked for me was to save the figure in .svg format in matplotlib. This preserves the LaTeX math symbols rendered by matplotlib when you open in Inkscape