Inkscape Extension ‘svg2tikz’ revisited.

In this earlier posting, I had written about the low-performing 3rd-party Inkscape Extension known as ‘svg2tikz’. Nevertheless, this extension may prove useful to some users, who wish to import an arbitrary document-type into Inkscape – preferably vector-based – and who wish to convert that into LaTeX in some way. And it seems that, even though this project was abandoned some time ago, work has slowly begun to resume on its source-code. And so, I should also fine-tune some of the earlier commentary I had made about this extension.

First off, there is an important detail about how to compile and install this extension, which its devs fail to point out anywhere. It needs to be built and installed, using Python 3, while many Linux computers still default to Python 2.7. Therefore, the commands to build and install it are:

 


$ python3 setup.py build
$ su
(...)
# python3 setup.py install

 

If one neglects this detail, then Unicode support is left out, and usually, SVG Files etc., will contain some Unicode characters. Further, as the Github comment states, while the importing of raster-based images is now supported, their import as Base-64 encoded, inline data is not. Therefore, within Inkscape, for example if a PDF File is being imported, the option needs to be unchecked, to ‘Embed’ graphics. And when Saving a Copy to TiKz Format, the option should also be unchecked, to ‘Indent Groups’.

But this last detail leads me to an important, additional observation. I have always known that the export of Text with the Figure has been dodgy. But lately, either because I’ve become more observant, or, because the behaviour of the latest version of the extension has improved, I’ve noticed what, exactly, goes wrong with Exporting Text along with the Figure.

(Updated 2/11/2020, 1h05 … )

Continue reading Inkscape Extension ‘svg2tikz’ revisited.

Low-Performing InkScape Extension, for TikZ Export.

One of the facts which I’ve been writing about is, that the application ‘InkScape’ supports exporting its graphics to the ‘PSTricks’ flavour of .TEX-File. It does this out-of-the-box and without apparent error. But I have also written that A flavour of .TEX-File exists, which is the PGF/TikZ form. And Linux has few graphical, interactive editors, to be able to create this file-format, because again, the file that is being sought is a text file. It would be nice of InkScape could additionally output to this format, since InkScape is a powerful, GUI-based graphics application.

Well as it happens, It’s possible to add some meagre extensions to InkScape, in user-space, or with elevated privileges. One such extension is called ‘svg2tikz‘, and so at first glance it would seem that users can benefit fully. But as is often the case, there are caveats with using this one extension.

(Updated 3/10/2018, 7h30 … )

Continue reading Low-Performing InkScape Extension, for TikZ Export.