Questions tagged [tikz-external]

Questions about the externalization library of TikZ/PGF.

Filter by
Sorted by
Tagged with
1 vote
0 answers
39 views

Externalizing figures from tikzviolinplots package in consistent size

I am using the tikzviolinplots to locally compile pdf figures that I upload to my main document on overleaf. I need them to have the following properties Each should have identical dimensions The ...
user9781778's user avatar
0 votes
0 answers
48 views

pdflatex' is not recognized as an internal or external command when using externalize

I have been using externalize to generate my pictures for some time now and recently I attempted to generate pictures with lualatex and gnuplot in order to generate contour plots. After I followed ...
otiuuaugusto's user avatar
0 votes
0 answers
21 views

Problems with externalize figures in PGFplots

I have a MWE as following where i need to build a surface externalizing it: \documentclass{article} \usepackage{tikz,pgfplots} \usetikzlibrary{external} \tikzexternalize[prefix=tikz/] \begin{document}...
Angelo Aliano Filho's user avatar
1 vote
1 answer
49 views

Problem with tikzexternalize and conversion to png (lualatex)

I would like to use the externalize library. So far it worked perfectly and created pdf documents. But now I want to get a "png" file instead. I tried, according to the externalize ...
Yumina 弓那 Nirvalen's user avatar
1 vote
1 answer
58 views

Tikz Externalize: Manual up-to-date check

I'm using this macro to scale my pgfplots to a desired size: \newsavebox{\measuredSize} \newcounter{int} \newcommand{\resizeToMeasure}[3]{% \pgfmathsetmacro{\pgfplotswidthtarget}{#2}% \...
ValenStein's user avatar
1 vote
0 answers
20 views

How to pass "parameters" from figure to figure when using \tikzexternalize

On the first figure below ( \tikzexternalize is disabled) the diagram on the right is drawn using the possibility of the "calc" library to draw parallel lines. I need this schematic to be in ...
rpapa's user avatar
  • 12.1k
0 votes
0 answers
15 views

How to force \tikzexternalize to stop compilation in case of error?

I have a rather annoying error or rather lack of error when I use \tikzexternalize. Take for example the following code that draws two circles % !TeX program =Xelatex+shell-escape % !TeX encoding = ...
rpapa's user avatar
  • 12.1k
0 votes
1 answer
27 views

tikzexternal no pdf output

I am trying to use tikzexternal to produce pdf of my images. I was using tikzpicture in \begin{figure} environment. However, I could not get any pdf output. Then I removed the \begin{figure}, tried ...
j.doe's user avatar
  • 121
1 vote
0 answers
42 views

De-duplicating a large number of tikz figures

I have a document with a huge (790) number of figures, a lot of them are small trees with various labels. I've externalized the figures to shorten the compile time (25min). However, lots (94 of them) ...
hivert's user avatar
  • 123
1 vote
1 answer
77 views

Error when using TikZ external and tikzmark libraries together

(Possibly related to this, but the example and the error are very different from what I've come up with. Plus it's a question from 2015, and the answers have been updated in 2017 and no later, so I ...
Enlico's user avatar
  • 2,552
0 votes
0 answers
10 views

\printindex causes error in TikZ externalization [duplicate]

I've managed to trim down the example to just this: \documentclass{book} \usepackage{imakeidx} \usepackage{tikz} \usepackage{tikzscale} % not really needed, but I do `\includegraphics{some.tikz} in ...
Enlico's user avatar
  • 2,552
0 votes
0 answers
26 views

How to get TikZ external figures to be named by a hash of the figure rather than by ordering?

I am using \usepackage{tikz}, \usepackage{pgfplots}, \usepgfplotslibrary{external}, \tikzexternalize. I have figures that are very slow to TeX (on the order of minutes), so I'm quite happy to have \...
Jason Gross's user avatar
  • 2,085
1 vote
1 answer
72 views

Resolving tikzcd/externalize/align incompatibilities

I've been trying to follow the insights from the following posts: Are the TikZ libraries cd and external incompatible with one another? How to avoid redefining ampersand & globally? Use & ...
DaftWullie's user avatar
0 votes
0 answers
22 views

Tikz externalization output-dir on two levels

I'm trying to get a nice dir structure for my project but I'm having lots of trouble with externalization. I've read many questions but the most accurate for my case is this question. The problem is ...
Eduardo Jiménez's user avatar
0 votes
0 answers
69 views

Accessing files generated by TikZ

I'm working on a project with Overleaf and use \tikzexternalize[prefix=tikz/] for externalizing the pictures. The output pdfs are generated. Do I have to download the pdf files and upload them again ...
mxxrspxxl's user avatar
0 votes
0 answers
33 views

Tikzexternalize and `underset`

Using \tikzexternalize, I have discovered that wrapping a tikzpicture in \underset causes tikzexteranlize to compile the picture three times; e.g., observe the output of \documentclass{scrartcl} \...
Bubaya's user avatar
  • 2,149
0 votes
1 answer
70 views

Why is Tikzexternalize taking so long after deleting/commenting out only one tikzpicture? And how do I solve it?

I am creating exercise sheets with solutions with tikzpictures and pgfplots. I have had great use of the externalization library to speed up compilation time. However, I noticed that editing an ...
yPNia's user avatar
  • 3
0 votes
0 answers
70 views

How can I use `-jobname=` to compile with tikzexternalize?

The way I compile latex file is as follows: FILE="main.tex" pdflatex -shell-escape -shell-escape -jobname=main_temp $FILE mv main_temp.pdf main.pdf open main.pdf # opens on pdf editor Way ...
alper's user avatar
  • 1,311
0 votes
0 answers
39 views

Book compilation taking forever, is standalone the culprit?

I have a book with a very large preamble (lots of commands, packages, etc.). When I comment all chapters but one, compilation takes the expected amount of time. However, when I try to compile the ...
aaragon's user avatar
  • 3,049
0 votes
0 answers
41 views

Update "How to scale a tikzpicture to \textwidth" for expl3/xparse

I am probably the thousandth person who wants to scale a tikzpicture to the size of \textwidth. There is a solution for this problem given in https://tex.stackexchange.com/a/6391/193625 however it ...
Franz's user avatar
  • 165
0 votes
0 answers
76 views

Speed up tikz externalize

I am using the externalize functionality of tikz for a large document with many complicated pictures. Whenever tikz has to generate a single picture because I have changed its code it executes the ...
Jan Hajer's user avatar
  • 844
1 vote
0 answers
53 views

Tikz picture with externalize in xsim solution

I have a document using the package xsim for creating exercises and corresponding solutions. The solutions are printed in the back of the document so students do not directly skip forward to the ...
asekno's user avatar
  • 11
1 vote
0 answers
43 views

TikZ forest ignores tikzsetnextfilename

I have the next structure Main.tex \documentclass[12pt]{report} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Draws & diagrams \usepackage{tikz} \usetikzlibrary{shapes.geometric, arrows.meta, shadows} \...
Eduardo Jiménez's user avatar
0 votes
0 answers
169 views

Tikz externalize prefix argument combined with -output-directory gives inconsistent behavior

Situation I am compiling a document using the TikZ externalize library, and want to create my output in an output folder /out/, but have the TikZ externalize figures stored in a subfolder /out/figures/...
Anne Poot's user avatar
1 vote
1 answer
45 views

Combination of pgfplot crossreferences and invoke before with externalize produces error

I would like to use the "legend to name" feature of pgfplots with externalize. This works fine if I don't use the "invoke before crossref tikzpicture" which I use to set the ...
Hannes Börngen's user avatar
0 votes
1 answer
72 views

Externalise tikz figures and LaTeX output in different directories

I have the following tree: . ├── main.tex ├── output └── tikz I would like to compile main.tex using output for LaTeX output, but having the tikz PDFs externalised in the tikz directory, which would ...
antonio's user avatar
  • 1,406
0 votes
0 answers
69 views

Conditional inclusion of environment gives random errors

I've spent a few hours trying to debug the following. I did manage to fix it, but mostly by chance. Can someone enlighten me on what actually happened? Initial setup I'm using \usetikzlibrary{external}...
Atcold's user avatar
  • 1,675
2 votes
2 answers
526 views

TikZ-externalizing a PGF image (e.g. from matplotlib)

I am trying to include PGF figures from files (in my case created by matplotlib) and combine them with the TikZ-externalizing workflow. The benefit of including PGF figures in the first place is that ...
BanDoP's user avatar
  • 193
1 vote
0 answers
200 views

Tikz externalize is **much** slower than tikz on first run

Short version: The tikz externalize library takes something like 2-3 seconds to compile a single very simple diagram. As a result, when there are many diagrams, the first run of pdflatex is really ...
tobiasBora's user avatar
  • 7,417
2 votes
1 answer
351 views

Stop at error + Meaningfull errors with shell-escape and Tikz externalize

I've been trying to use shell escape and tikz externalize (see for instance here), but I have two issues: when the tikz picture fails with some errors, the compilation does not stops if it compiled ...
tobiasBora's user avatar
  • 7,417
2 votes
2 answers
341 views

How to use \tikzexternalize and the overlay option at the same time?

I am trying to create a cover page in LaTeX with Tikz (the example provided is very simple but the goal is to have a more detailed cover page). I am using PDFLaTeX. I have to use the overlay option on ...
Alex.S's user avatar
  • 23
0 votes
1 answer
98 views

todonotes with tikzexternalize - white space problem

For a larger document including many TikZ pictures I am using tikzexternalize and the todonotes package. Based on this question I (re-) defined a command that automatically excludes the todo notes ...
PrinceOfMe's user avatar
0 votes
1 answer
78 views

tikzlibrary: externalize - Generate figures without background

Hello there When using tikz's external library in a document with tcolorbox translucent boxes, the generated figures have the page background and appears as a hole in the tcolorbox box, how to remove ...
Felipe9's user avatar
  • 145
0 votes
1 answer
65 views

tikzlibrary: external file names with spaces issue

Hello there Currently trying to implement tikz's external library to a file named stack q.tex MWE: \newcommand\subfilename{"./stack q.tex"} \documentclass{article} % pgfplots \usepackage{...
Felipe9's user avatar
  • 145
1 vote
1 answer
105 views

tikzlibrary: external not outputting usable file

Hello there Currently trying to implement the external library but cant seem to make it work \documentclass{article} % pgfplots \usepackage{pgfplots} % % Uncommenting generates error % \...
Felipe9's user avatar
  • 145
0 votes
1 answer
409 views

TikZ externalize while using -output-directory

I'm using tikzexternalize to speed things up and to have a clean working directory, And I'm using -output-directory on compilation to have a clean working directory (actually I use cluttex, but I've ...
atticus's user avatar
  • 525
0 votes
0 answers
38 views

TikZ externalize if tikzpictures is wrapped [duplicate]

for simple use I've written an environment wrapping the tikzpicture environment. So far no trouble. Now I realized I've got a huge amount of tikzpictures in my document and I've read once about tikz ...
atticus's user avatar
  • 525
1 vote
1 answer
51 views

\tikzexternalize does not work inside \ifdefined

I am trying to export different pictures as PDFs. I have followed the answer here to give a condition on a figure. It works with a single picture/condition, but I need to combine multiple conditions. ...
Daniel Duque's user avatar
2 votes
1 answer
89 views

Problem tikzexternalize with \def

I am trying to save some plots as individual PDFs, but I want to decide which ones to save with a condition. mwe.tex: \documentclass[11pt]{article} \...
Daniel Duque's user avatar
1 vote
1 answer
790 views

pdflatex doesn't allow me to enable system calls from another directory

I am trying to save the plots in my file into separate PDFs. My file is called my_file.tex located in /full/path/to/my/file This is my_file.tex: \documentclass[11pt]{article} ...
Daniel Duque's user avatar
1 vote
1 answer
281 views

-shell-escape does not work

When running pdflatex -synctex=1 -interaction=nonstopmode -shell-escape %filename%.tex It gives: Package tikz Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-error interaction=batchmode ...
MPEI_stud's user avatar
3 votes
1 answer
200 views

tex4ht: using tikzexternalize still includes svg, not png

I'm using make4ht to generate HTML from a .tex file which contains tikz images. I use the tikzexternalize command together with code from Htlatex and Tikz creates sometimes incorrect svgs to ensure ...
cmhughes's user avatar
  • 99.7k
4 votes
1 answer
138 views

siunitx v3 and pgfplots externalization with lualatex: \micro encoded as "ţ"

Upgrading from TeXLive 2020 to TeXLive 2021 lead to wrong encoding of the siunitx \micro macro, which is displayed as "ţ". The problem only occurs in pgfplots figures being externalized with ...
sambura's user avatar
  • 43
1 vote
0 answers
41 views

Externalizing tikz diagrams with arguments

Since my Latex document involves many tikz pictures, often similar, I defined a command with arguments which does a tikz drawing with "decorations" controlled by these arguments: \diag{<-}...
Adam's user avatar
  • 779
1 vote
0 answers
173 views

Tikz external handling optimization

Since I have many and elaborate diagrams (PGFPlots) as well as Tikz images in my document, I have come across a limitation of Tikzexternalize. It takes a long time to compile the document if I make ...
Sunsheep's user avatar
0 votes
0 answers
66 views

Avoid remake of references in TikZ externalization

I am working on a large document with considerably more than 100 TikZ-pictures. Within the document individual plots created with pgfplots are referenced using e.g.: \addplot table[x=f,y=T]{\datPath};\...
BChem's user avatar
  • 1
2 votes
0 answers
72 views

Tikzscale does not scale a figure when it contains addplot3

I wanted to implement a 3d-figure containing stacked 2d-layers, with an example below: I used the following code, with a main file: \documentclass{article} \usepackage{standalone} \usepackage{tikz} \...
arc_lupus's user avatar
  • 1,751
0 votes
1 answer
83 views

Problem using pgfplots and externalize [closed]

Having trouble using the externalize feature of pgfplots. Here is my MWE, from overleafs pgfplots guide so I figure it should work. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{width=...
Morten Nissov's user avatar
2 votes
1 answer
336 views

Is it a bug of acmart or hyperref that the acmart class is incompatible with tikzexternalize and lualatex under some unclear conditions?

I'm very confused by this error, and in particular how sensitive it is to things like the number of characters in section titles, and whether or not I stick any space between \begin{abstract} and \end{...
Jason Gross's user avatar
  • 2,085
3 votes
1 answer
469 views

\tikzexternalize together with drawing on an image with TikZ

I am following this very good answer that explains how to draw on an image with TikZ. Now I tried to implement this new tikz picture I got with Tikz library external but I get the error Package tikz ...
tush's user avatar
  • 1,093

1
2 3 4 5
10