Questions about the externalization library of TikZ/PGF.
19
votes
1answer
7k views
Export eps figures from TikZ
Section 32 Externalization Library of the pgfmanual (v2.10) explains how to generate PDF figures and EPS figures. I successfully tried it with PDF output (there is an example with a full explanation ...
19
votes
3answers
709 views
todonotes and tikzexternalize
In my document I use todonotes and TikZ/pgfplots. After activating the externalization in TikZ I realized that todonotes are all exported as well (because they are based on TikZ).
This behaviour is ...
14
votes
2answers
1k views
TikZ externalize, pgfplots and animate
I gave a very fetching presentation written with beamer today. It included a pgfplot animated with the animate package, and the result was fantastic. The problem? One of my colleagues wants to borrow ...
13
votes
4answers
2k views
Override TikZ externalize “up-to-date” flag
I am currently using the TikZ external package in order to avoid recompiling all figures in my thesis. There are more than 50 figures, relying on large data, and a full build without externalizing ...
12
votes
2answers
199 views
TikZ External: Figure gets cropped
Arrow heads from the following MWE are cropped when externalized. What am I doing wrong?
MWE:
\documentclass{report}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize
\begin{document}
...
12
votes
0answers
124 views
Can TeX generate “heap dumps” to analyze+optimize out-of-memory situations?
As package author of the memory-extensive package pgfplots, I have been asked to analyze some out-of-memory situation.
I could identify the "culprit"; it was some call to \pdfmdfivesum in which it ...
11
votes
1answer
426 views
Automatically set file name of externalized graphics equal to the file name of the tikz/PGF file
As the title says, is it possible to set some options for the externalize library in order to for the filename of the externalized graphics to be equal to the filename of the TikZ-file without using ...
10
votes
2answers
596 views
Draft mode in Tikz externalize hides graphics, but not without externalize
Maybe this is expected behaviour, but it's not documented in the manual, and it certainly surprised me.
When you use the draft class option and use the tikz external library, all Tikz pictures are ...
10
votes
2answers
2k views
Precompiled preamble with TikZ/Externalize
I'm using the externalize capability of TikZ (external library) to speed up compilation of my TikZ pictures (as explained in Script to automate externalizing tikz graphics).
In addition, I would like ...
9
votes
2answers
223 views
Why is fixltx2e incompatible with tikzexternalize
I had some weird problems with tikzexternalize sometimes working sometimes not.
I narrowed it down to the culprit fixltx2e. Here is a MWNE (Minimal not working exmple)
@ ALtermundus: Yes this is ...
9
votes
2answers
262 views
tikz External: \tikzsetnextfilename and \tikzpicturedependsonfile
Consider the following MWE. If \tikzpicturedependsonfile is commented out, the code runs as expected. A.dep is created stating the dependency of A.pdf on A.dat. Now, lets try to add the tikz source ...
8
votes
2answers
328 views
Use tikz external feature with beamer \only
I would like to use the beamer \only with tikz while external is activated. The problem is, that the \only get ignored. (see also the MWE).
I would love to cache the tikz pictures, because it would ...
8
votes
1answer
1k views
pgfplots: externalization and legend referencing
There are some issues when using the pgfplots option legend to name together with externalization. When I disable externalization, everything works fine. When I enable externalization, I get an error
...
8
votes
1answer
149 views
Latex Standalone always rebuilds / apostroph in filename?
I have started toying around with Martin Scharrer's standalone package because tikz external does not work with todonotes and I feel that the workflow for standalone makes more sense as far as I have ...
7
votes
1answer
485 views
Problem with environment expansion and the Tikz external library.
I've created my own environment mytikz, which basically looks like this (full MWE):
\documentclass[a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{external}
\newenvironment{mytikz}{%begin code
...
6
votes
1answer
950 views
tikzexternalize only (or not) for flagged graphics
I have a couple of pictures in my work so I started to build them extern in order to increase build speed. But I don't want to externalize all of them, I want a few little pictures to be build ...
6
votes
1answer
360 views
Compiling CircuiTikZ with -shell-escape (pdflatex)
I'm trying to use both CircuiTikZ and pgfplots. In order not to overflow LaTeX memory, I use the TikZ externalize library with -shell-escape command in pdfLaTeX. It compiles the pgfplots nicely, but ...
6
votes
1answer
764 views
Externalization to other format, Makefile. Add new rules to the makefile
Through using Christian's method of externalization, shown below, one can convert the pdf's to any chosen format right after the externalization at hand.
\documentclass{article}
\usepackage{tikz}
...
6
votes
2answers
908 views
TikZ externalize → pdf → eps → Word import = ☠
I have a series of TikZ figures which I need to include in Word document (conference requiring Word submissions). Allowed format as EPS and TIFF. The figures are obviously vector graphics; they are
...
6
votes
1answer
746 views
Managing a project: separate .tex-files, externalized TikZ, folders
I am currently cleaning up my project to manage it better as it expands in the future. I am wondering if there is a way to manage the following in a smarter and more efficient way.
Currently, this is ...
6
votes
1answer
128 views
TikZ Externalize & Linegoal conflict?
I'm new to stackexchange, and did not find any information about this issue. I encounter an error whenever I try to use the TikZ's externalize along with (unrelated to TikZ pictures-) \linegoal. My ...
6
votes
2answers
860 views
Unable to use external PostScript pictures generated by TikZ
I'm using external EPS from TikZ figures following the suggestions found in "Export eps figures from TikZ". Images are correctly created but when I get the PS of the main document with dvips I can't ...
6
votes
0answers
81 views
externalize pgfplots, and only pgfplots
I would like to externalize the plots in my document (using pgplots), but not other inline stuff, such as bonds automatically drawn by chemmacros. That is, in the following test document:
...
5
votes
1answer
358 views
From inside a LaTeX article, I want to render several parts of the code into a separate png (a “render pass”)
I have a long article with many, say, TikZ images. Let's say it looks like:
\documentclass{article}
\usepackage{tikz}
\begin{document}
...much more stuff...
\begin{tikzpicture}
\draw[red] ...
5
votes
1answer
116 views
Referencing a Vertex that has Math Typesetting inside it to make an Edge
I want to create math font inside of my vertex circles, AND draw edges between them. How I typically create network graphs is as follows:
\usepackage{tkz-graph}
\begin{tikzpicture}
...
5
votes
0answers
171 views
Plots from externalized TikZ are rotated [closed]
I just found out about tikzexternalize and I love it - well, almost. This is my situation: I have done simulations in Matlab and used
matlab2tikz
to get the plots from Matlab into my .tex document. ...
4
votes
1answer
739 views
How to get the pgfplots external tutorial to work in TeXnicCenter?
In 7.1.1 of the PGFPLOTS library the following example of externalization is given. Whatever I try, I cannot get it to work in TeXniccenter, running MiKTeX 2.8.
\documentclass{article}
...
4
votes
1answer
49 views
Display problems when plotting large datasets (unwanted spikes)
I have a problem concerning pgfplots and large datasets. I have the following minimal example:
\documentclass{scrartcl}
\usepackage{tikz}
\usepackage{pgf}
\usepackage{pgfplots}
...
4
votes
1answer
266 views
External graphics and tikz externalize won't work together
I am using the tikz library external a lot and with success - so far. Now, I need to import an external file (eps, png, pdf... I don't care), and add the axes. I know I can do this with \addplot ...
4
votes
1answer
211 views
Using tikzexternalize with pdflscape results in rotated image
When using the external TikZ library to externalize an image in a pdflscape landscape environment, the resulting image is rotated by 90 degrees. This does not happen when including "normal" images. ...
4
votes
1answer
675 views
Tikz externalize + macro's ? Or how would you do it?
I'm currently building courses for some of my college teachers. The aim is to make their Word/MS paint generated study material into high grade Latex/Tikz material.
I'm aiming for high consistency in ...
4
votes
1answer
54 views
Beamer overlays, tikz external and custom file name
This is a follow-up question from Use tikz external feature with beamer \only . Andrew's answer there is excellent, and does the job (almost) perfectly.
The rough edge I have found was when I tried ...
4
votes
1answer
101 views
Pgfplots gives spurious lines in external mode with geometry
This is not a major problem but all the same I would like to confirm that I am not doing anything wrong. Geometry package with showframe=true option is used to see if all the figures are within the ...
4
votes
1answer
145 views
TikZ Externalize: Referenced legends from PGFPlots are not included
The following MWE without TikZ externalization works. However, the legend at the bottom is lost with externalization. Since the \ref in this example does not refer to anything outside tikzpicture ...
4
votes
1answer
510 views
Strange problem with pgf/tikz auxlock file when invoking tikzexternalize
I'm trying to generate a number of somewhat complicated TikZ based plots using gnuplot's lua/tikz terminal. Things had been working fine last month, but when I needed to update some of these plots ...
4
votes
1answer
71 views
TikZ externalization with floatrow package
When using the TikZ externalization library within a \ffigbox from the floatrow package, the external image is created two times. The reason is, that the argument of \ffigbox gets parsed two times. ...
4
votes
0answers
142 views
pdflatex does not overwrite existing PDF files upon compilation when using TikZ external [duplicate]
I have a LaTeX/pgf/TikZ file that I'm trying to compile. I included the library external so that I could export the file. However, the problem is that \tikzexternalize apparently doesn't have a ...
3
votes
1answer
284 views
How to use tikz-timing together with the external library
I would like to generate a tikz-timing signal in my LaTeX document and to save it, using external library as pdf file.
Here is an example of a combine code:
\documentclass[border=5pt]{scrbook}
...
3
votes
1answer
621 views
Error when using both minted and TikZ externalize with xelatex
See the following MWE.
\documentclass{article}
\usepackage{minted, tikz}
\usepackage{fontspec}
\setmainfont{Arial}
\usetikzlibrary{external}
\tikzset{external/system call={%
xelatex ...
3
votes
2answers
2k views
Attempting to export tikz to eps
So, after having read the below thread:
Attempt to export eps figures from TikZ fails
I am able to generate .dvi versions of my figures. However, I need .eps, and it seems that the question above ...
3
votes
1answer
387 views
References in externalized pgfplots
I was writing on an document with a lot of pgfplots in it. Because of the memory limitation in LaTeX and in order to save some compiling time I tried out the externalize command. With most of the ...
3
votes
1answer
1k views
Externalising TikZ pictures using XeTeX
I'm trying to use TikZ's external library with XeTeX, for example, and I'm running into some issues. Having set
external/system call={xelatex \tikzexternalcheckshellescape
-halt-on-error ...
3
votes
1answer
423 views
How to exploit externalized images runtime-wise?
Thanks to the valiant efforts of @zeroth, I got TikZ' externalization running with todonotes, TikZ images pieced together by environments and macros and my homebrew compilation script. In particular, ...
3
votes
1answer
156 views
TikZ External and tikzscale: Figure is regenerated every time
I am using tikzscale with tikz external library in the list and make mode. Before using tikzscale, if I issued make -f main.makefile command, only the figures that were not present would be generated. ...
3
votes
1answer
147 views
tikzscale and \tikzsetnextfilename do not work together
\tikzsetnextfilename does not work with tikzscale package. In the MWE, included file is A.tikz which should produce A.pdf. MWE works if tikzscale is not used.
MWE:
\documentclass{report}
...
3
votes
0answers
70 views
Using `external` selective for TikZ-pictures
For the following example:
\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{calc,external}
\usepackage{pgfplots}
\tikzexternalize
\begin{document}
...
3
votes
0answers
91 views
Table and \tikzexternalize
It might not be a usual thing to do but I need to put some tikz pictures in a Table with externalization. I did
\documentclass{report}
\usepackage{tabu}
\usepackage{tikz}
\usetikzlibrary{external}
...
2
votes
1answer
174 views
Tikz externalize: use external PDF or render by tikz, do not create external PDF
I have texlive 2012 and tikz. Is it possible to get the following behavior?
With external library to tikz, use external image, if it is available. However, if it is not available, render the ...
2
votes
1answer
358 views
Generated Figure seems cut when using tikzexternalize
When I use the following code, the Figure seems cut, as from a too tight
bounding box.
\documentclass{article}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{pgfplots}
...
2
votes
1answer
518 views
Referencing externalized pgfplots with subfig and cleverref
I use pgfplots to produce a vast amount of images in my document. Due to limited LaTeX memory, I am forced to use \tikzexternalize. Moreover, I also use the subfig package to group several pictures ...