[IPython-dev] TikZ Magics
Wed Jan 9 06:50:22 CST 2013
On 09.01.2013, at 13:46, Zoltán Vörös <firstname.lastname@example.org> wrote:
> On 01/09/2013 01:12 PM, Michael Kraus wrote:
>> Dear all,
>> I tried to send this mail to the list a few days ago, but it seems it didn't make it.
>> Fist of all, thanks a lot for the great work on the IPython Notebook. I'm using it a lot and really like it. Especially the LaTeX support is great and extraordinary useful!
>> However, I'm using TikZ quite a lot as well, for drawing figures and sketches. I thought it would be really nice to do that within the IPython Notebook. So I created TikZ magics that aim at allowing exactly that. Of course, it needs an existing LaTeX installation to run properly (and probably convert from ImageMagick).
>> So far it's mostly a quick hack based on the Octave magics. Right now only PNG works fine. The JPG and SVG output of the LaTeX Standalone module seems to be pretty crappy so that the result is rather useless. Nevertheless, the support for SVG and JPG is in the module, just in case the LaTeX (or convert) guys get that working properly. One can also think about using convert to go from PNG to JPG, which should work better. For SVG I don't have a workaround, yet.
> 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…
Of course you cannot create a decent vector image out of PNG, but a decent JPG should be possible.
More information about the IPython-dev