[IPython-dev] TikZ Magics

Michael Kraus michael.kraus@ipp.mpg...
Wed Jan 9 07:22:10 CST 2013


On 09.01.2013, at 13:53, Zoltán Vörös <zvoros@gmail.com> wrote:

>>> But shouldn't it be possible to run pdflatex on the tikz code, and then call pdf2svg? I do that all the time. You can't create a decent vector image out of PNG.
>> That would be an option, but how default is pdf2svg? I mean which Linux / TeX distributions ship it? It doesn't come with MacTeX…
> On Linux, it is pretty standard. I can't comment on other OSs.

Ok, it's also included with MacPorts.

I updated the script to do the conversion to JPG via convert and the one to SVG via pdf2svg. I also understand now why LaTeX standalone produces crappy JPGs. Maybe that can be worked around directly…

For now, the new files can be found at 

http://www.ipp.mpg.de/~mkraus/python/tikzmagic.py
http://www.ipp.mpg.de/~mkraus/python/tikzmagic_test.ipynb


Cheers,
Michael



More information about the IPython-dev mailing list