Questions about the externalization library of TikZ/PGF.

learn more… | top users | synonyms

33
votes
0answers
572 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 ...
26
votes
1answer
12k 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 ...
23
votes
1answer
653 views

How to make pdfLaTeX multithreaded when `--shell-escape` is enabled?

I am using \write18 enabled (or --shell-escape) with externalization to compile a bunch of PGFplots. The first run takes much time, and I noticed that pdflatex only runs on one CPU core. Is there any ...
22
votes
3answers
1k 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 ...
19
votes
3answers
3k 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 ...
19
votes
4answers
4k 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 ...
14
votes
1answer
2k 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} ...
14
votes
1answer
2k 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 ...
13
votes
2answers
374 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} ...
13
votes
2answers
981 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 ...
13
votes
1answer
993 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 ...
12
votes
2answers
850 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 ...
10
votes
2answers
273 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 ...
10
votes
1answer
2k 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 ...
10
votes
2answers
813 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 ...
10
votes
2answers
263 views

Are the TikZ libraries cd and external incompatible with one another?

Is there a way to use the TikZ libraries cd and external together? This does not work: \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd, external} \tikzexternalize \begin{document} ...
10
votes
2answers
4k 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
1answer
405 views

Recreate plot when data file changes

Is it possible to use the TikZ/external library and have pgfplots recreate a figure when a data file that is plotted changes? Say I have something like the following: file.tex: ...
9
votes
1answer
239 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 ...
9
votes
1answer
293 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: ...
8
votes
1answer
768 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 ...
8
votes
1answer
272 views

legend placement with bounding box restrictions and externalization in pgfplots

I find it useful to add \pgfplotsset{/tikz/every picture/.append style={trim axis left,trim axis right}} to my preamble for bounding box restrictions. But then when I use the legend to name feature ...
7
votes
1answer
794 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 ...
7
votes
3answers
2k 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 ...
7
votes
1answer
1k 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 ...
7
votes
1answer
88 views

How to reset TikZ‘s externalization counter?

TikZ‘s externalization feature creates – by default – images like “nameOfFile-figure0.pdf”, “nameOfFile-figure1.pdf” and so on. One can change this behavior, for example I configured TikZ to save ...
7
votes
1answer
146 views

Flatten transparency in tikz

I have a document which I need to compile PDF/A-1b compatible, which means that transparency is not allowed. I have (several) tikz sources directly in the document, and I think they look better with ...
6
votes
1answer
686 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] ...
6
votes
1answer
174 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} ...
6
votes
1answer
92 views

exporting tikz pictures starting with 1 rather than 0

I want to export my figures for an editor for import in another text editing program. I would like to have the name of the file correspond to the figures in the document. In the document they start ...
6
votes
1answer
267 views

How to plot a graph from its adjacency matrix?

For example, I want to plot a graph whose adjacency matrix is [0,1,0;1,0,1;0,1,0]. I first plot three points labeled by p1,p2,p3, and link the points p1,p2, p2,p3. For a general case, how to link the ...
6
votes
1answer
157 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
1k 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
1answer
910 views

How do I include and scale on-image-TikZ-drawings made by the standalone class?

I am building several on image TikZ drawings. In detail: I am having PDFs of technical drawings, I crop the white margins, overlay nodes and some arrows and compile them. The result should give me a ...
5
votes
1answer
1k 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 ...
5
votes
1answer
274 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
2answers
172 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 ...
5
votes
1answer
2k 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 ...
5
votes
2answers
183 views

Error using \tikzexternalize with forest

Using forest package for simple truth trees, and I want to externalize because there are a lot of them. Here is the code example: \documentclass{article} \usepackage[external]{forest} ...
5
votes
1answer
101 views

Why does the Animate package inflate the file size of all of my externalized TikZ pictures?

I am using TikZ externalization to compile the figures in my thesis that use TikZ or PGF Plots. Ever since I included an animation using the animate package, the size of the PDFs of each of my ...
5
votes
1answer
376 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. ...
5
votes
1answer
703 views

Why does tikz neither draw nor externalize my picture?

I'm trying to generate a gif from a tikz picture, using tikz's external library. Ultimately, my plan is to Convert a picture to gif write a node style that converts the nodes' coordinates to pixel ...
5
votes
1answer
316 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} ...
5
votes
1answer
283 views

Lualatex, Pdflatex fail with \externalize

Here is my problem: I have a 100+ page document with ~100 tikz plots. Some plots contain 9000+ points, and compiling them with pdflatex -shell-escape (or whatever main_memory_size) fails. I can ...
5
votes
1answer
103 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. ...
5
votes
0answers
111 views

Absolute path for pgf externalisation

The graphic externalisation works well when it is done in a subfolder of my TeX files with the command \tikzsetexternalprefix{figures/} However, I get an error message when I try to set a different ...
5
votes
0answers
244 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
2answers
407 views

Integrating latexmk and TikZ external mode=list and make

I've been looking into using latexmk to create my documents because it automatically handles how many passes the document needs to be fully processed etc. So, for example, a simple run of latexmk -pdf ...
4
votes
1answer
1k 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 ...
4
votes
1answer
2k 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} ...