[Tex/LaTex] Automagically externalising PSTricks and TikZ pictures

compilingpdftrickspstrickstikz-pgf

My thesis currently has a few PSTricks and TikZ pictures. It takes a while to compile over here Scott says he has some scripts to automate externalising TikZ pictures.

I'm looking ideally for something that will automatically name sequentially all of my figures, generate the graphics for them and automagically include them. I don't mind if I have to delete them by hand to recompile them if I change the code.

For PSTricks and TikZ please =) cause currently LaTeX is spanned for each PSTricks picture to generate a PDF graphic, and TikZ compilations starts to take up time.

P.S. half way through hte thesis I discovered TikZ but don't have time to redo PSTricks graphics.

Best Answer

If you have a recent version of tikz, there is a handy command that will do this for you.

If you go here: http://www.texample.net/tikz/builds/ you can download a up-to-date version of tikz. The documentation has instructions on how to implement the externalization in section 4.31 Externalization (in the current documentation this is page 340). The basic setup is explained in an example.

I use this for my own research and it is extremely easy. You can find a file I have implemented this in here more-ar-quivers.tex.

Related Question