Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

My thesis currently has a few pdftricks pictures 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 pdftricks & TikZ please =) cause currently latex is spanned for each pdftricks picture to generate a pdf graphic, and tikz compilations starts to take up time.

ps. half way through thesis I found out tikz but don't have time to redo pdftricks graphics.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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.

share|improve this answer
    
The specific reference to the documentation is useful, but this doesn't exactly automate the rest... –  András Salamon Aug 5 '10 at 17:44
    
Do you mean not automating the pdftricks? Unfortunately I have never used pdftricks so I am not sure of any options for it. –  TheAxeR Aug 6 '10 at 14:13
    
The question said: "I'm looking ideally for something that will automatically name sequentially all of my figures, generate the graphics for them and automagically include them". –  András Salamon Aug 9 '10 at 13:06
    
I took that to mean that the resulting external graphics should be automatically named sequentially and for those graphics to automatically be included in the final output, no additional commands or editing required. The externalization library in tikz does exactly this, for the tikz graphics. It will not, however, deal with the pdftrikcs graphics. So if the differnt types of graphics are mixed throughout then the sequential naming will be messed up. At least in my experience it has worked this way. For each picture I get the file "jobname-figure#.pdf" which is automatically included. –  TheAxeR Aug 9 '10 at 19:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.