TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question is based on Draft option in TikZ like graphicx.

From pgf manual,

33.4 Externalizing Graphics

The probably most comfortable way is to use the default conguration with pdflatex -shell-escape main which authorizes pdflatex to call itself recursively to generate the images.

Also manual says "users will need to issue the required commands manually (or with make)"

How to issue the required commands manually?


How to issue the required commands using makefile?

I am using TeXstudio with Miktex

share|improve this question

All this means is that in a Makefile or similar you need to remember to put

pdflatex --shell-escape <filename>

rather than just

pdflatex <filename>

Of course, you might have this as a variable in you Makefile to allow flexibility.

share|improve this answer

Your Answer


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.