I'm trying to regenerate an old document where I used to extract tikz figures using preview and I'm getting into a problem where preview extracts every page of the document rather than just the tikzpicture environments. The setup for preview are in this prelude.sty, included here.
Here's the way I invoke the extraction:
pdflatex -file-line-error -halt-on-error '-interaction=nonstopmode' \
'-output-directory=src' '-jobname=ocamlunix-image' \
'\PassOptionsToPackage{active}{preview}\input{src/ocamlunix.tex}'
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9k> and hyphenation patterns for 21 languages loaded.
(./src/ocamlunix.tex
(/usr/local/texlive/2014basic/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2013/05/30 v3.7b configurable book, report, article docu
ment class
(/usr/local/texlive/2014basic/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
[...]
Output written on src/ocamlunix-image.pdf (160 pages, 849607 bytes).
Any hints about what may be going on ?
texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.defand that is indeed the problem. As you indicated this also solves http://sourceforge.net/p/pgf/bugs/315/ which I also had in my build system. Could you maybe make an answer that I can accept ? – Daniel Bünzli Oct 28 '14 at 16:42