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

I am using \tikzexternalize to compile my pictures outside of the main document.

However, when I issue simple \tikz commands within the text, I'd like them to be compiled within the main document, to save some time.

Is there a way to turn externalization on/off, or to just limit it to the tikzpicture environment?

share|improve this question
up vote 4 down vote accepted

The global externalization setting can be temporary disabled/enabled (until the end of the TeX group) using \tikzexternaldisable and \tikzexternalenable. Another option is to set the /tikz/external/export={true/false} key; the variant /tikz/external/export next={true/false} applies only for a single picture.

All these are described on page 348f of the TikZ userguide.

share|improve this answer
Oops! I was using an older version of the manual :) – yannick Feb 19 '13 at 22:38

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.