![]() I have redone the svg from scratch using macSVG, my specific problem has vanished using cairosvg allowed me to create a quite satisfactory png that I can include through includegraphics It is a pity, it is so much nicer to create svg pictures for insertion… However, trying the 2 angles manually showed that none of them works out too well for me today I have a handful of svg drawings - that I happen to have produced under jupyterlab thanks to the very nice drawio extension - and all of them had at least one text object wrongly converted, whether I use inkscape or cairosvg I also tried another angle using cairosvg that is a Python library that looked lighter and so, I hoped, simpler to put into place I was thinking that if we went for this approach we could have nbconvert do the pre-processing itself, it’d be so much simpler Most likely includesvg will follow suit at some point maybe it has already and I am behind (I’m really not sure of how to update my latex distribution) I used brew install cask inkscape but then had to manually add /Applications/Inkscape.app//Contents/MacOS to my PATHĪs of today I could see includesvg fail to work properly it calls inkscape with a -z option that is not supported indeed as per this link the command line interface of inkscape has changed with release 1.0 that just went out at the beginning of May 2020 Installing inkscape is not straightforward - on my macOS at least ![]() One needs to run latex with the -shell-escape option to allow the spawning of an external program In case it helps, I have spent some time today trying to do this in an attempt to assess what could be doable
0 Comments
Leave a Reply. |