Questions tagged [tikz-external]
Questions about the externalization library of TikZ/PGF.
457
questions
0
votes
0
answers
13
views
Tikz image resizing + externalize to eps in standalone
I have a tikz image that I want to resize (with \resizebox) and then export as .eps. The PDF file that is generated by pdflatex has the correct dimensions from resizebox. However, the PDF generated ...
0
votes
0
answers
45
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}...
0
votes
2
answers
125
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 ...
1
vote
0
answers
77
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 ...
2
votes
1
answer
65
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 ...
1
vote
2
answers
53
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 ...
0
votes
1
answer
34
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 ...
0
votes
1
answer
40
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 ...
0
votes
1
answer
43
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{...
1
vote
1
answer
51
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
% \...
0
votes
1
answer
93
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 ...
0
votes
0
answers
36
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 ...
1
vote
1
answer
38
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.
...
1
vote
1
answer
49
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}
\...
0
votes
1
answer
119
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} ...
1
vote
1
answer
90
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 ...
3
votes
1
answer
105
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 ...
2
votes
1
answer
78
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 ...
0
votes
0
answers
31
views
Detect type of included file in includegraphics/custom command
To be able to make extensive use of tikz-figures and simultaneously use the project on Overleaf I included the following macro in my project:
\newcommand{\TikzCachePath}{tikz-cache/}
\tikzexternalize[...
1
vote
0
answers
35
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{<-}...
1
vote
0
answers
82
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 ...
0
votes
0
answers
58
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};\...
2
votes
0
answers
33
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}
\...
0
votes
1
answer
42
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=...
2
votes
1
answer
172
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{...
3
votes
1
answer
146
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 ...
2
votes
1
answer
238
views
Package tikz Error: Sorry, the system call 'xelatex -halt-on-error -interactix -shell-escape' with external PGFPlot and TikZ
I have been trying to use external PGFPlot and TikZ because I kept running into out-of-memory issues and it seems to externalize the figures into separate pdfs to be cached is the recommended solution....
2
votes
0
answers
56
views
Update externalized tikzpicture written in external tex file [closed]
I'm using pgfplots and \tikzexternalize. I have the following folder structure:
tikz/
chapter1/
chapter1.tex
main.tex
In main.tex the contents of chapter1.tex are included:
...
\begin{document}
\...
0
votes
1
answer
125
views
A mess of tikz/output-figure files and how to how to control it
I am working on a beamer presentation that consists about 25 tikz and pgfplots graphics scattered all over the ~50 frames.
Because of the multitude of tikzpictures , I am using the tikzexternalise ...
0
votes
0
answers
39
views
Make doesn't find pdflatex when using tikz externalize
In short, I am using tikz externalize. When compiling my main tex file with:
pdflatex --enable-write18 --extra-mem-bot=10000000 --synctex=1 lecture-notes.tex
it generates a make file. Then, when I ...
1
vote
0
answers
134
views
Overleaf cache not working properly with `\tikzexternalize` and `\include.`
I can confirm that some figures go missing or shows up in the wrong place in Overleaf when combining \include and \tikzexternalize.
I also tried the suggestion of @usr1234567 in How to externalize ...
1
vote
0
answers
50
views
Using tikzsetnextfilename for naming external tikz-files disables tikzscale
To implement the approach discussed here: Automatic detection of Overleaf for fallback images I wanted to give my tikz-files their own names, such that I can either include the tikz-file when ...
0
votes
1
answer
57
views
Automatic detection of Overleaf for fallback images
I am currently working on a larger project together with other authors. To make collaboration easier, the project is not only located locally on my PC, but also on Overleaf. Unfortunately, due to ...
0
votes
1
answer
66
views
externalize crashes with TikZ-within-TikZ
In the MWE below, there is a custom arrow defined as a separate drawing using \tikz. The arrow is used as an edge node so that it can be sloped automatically.
I am also using the TikZ external package ...
1
vote
0
answers
33
views
Texlive hangs when using tikzexternal
For a larger project I wanted to start using tikzexternalize to speed up repeated compilation runs. For that I wrote a small test file to check if everything is working correctly before introducing ...
0
votes
0
answers
59
views
background package with tikz externalize
I'm trying to use a background image for the title page of a book using the background package. The book has many TikZ images and so I would like to use the TikZ external package.
It doesn't work: ...
9
votes
1
answer
957
views
About use of \usepgfplotslibrary{external} and \tikzexternalize in Overleaf
I was reading the pgfplots manual today, and I came across the external pgfplots library. It should help decrease the compilation time and avoid regenerating every pgfplots graphics.
We (me and two ...
0
votes
1
answer
53
views
Weird bug when using tikzexternalize + subcaption with TACL journal template
Minimum working example code:
\documentclass[11pt,a4paper]{article}
\usepackage[]{tacl2018v2}
\usepackage{tikz}
\usetikzlibrary{external}
\tikzexternalize[prefix=tikz/,optimize command away=\...
1
vote
1
answer
70
views
Problem with `current axis` node and `externalize` and `tikzmark` packages
Abstract
I use current axis for drawing my axes and add labels to them but, if tikzmarks are used on a tikzpicture, current axis doesn't behave well in the next ones.
My main goal is to find out why ...
0
votes
0
answers
61
views
Tikz inline plots
I'm using the Tikz package to create a series of plots directly in my main .tex file. I opted for this method because the labels match perfectly the font and size of my main file even if I scale or ...
1
vote
1
answer
134
views
Alternatives to tikzexternalize
I know this may sound too broad, but: is there any alternative approach to tikzexternalize out there?
Especially when using pgfplots.
At least for me, it is not always easy/straightforward to have the ...
2
votes
1
answer
75
views
How to modify the counter for tikzexternalize file names?
Many journals require the figures of a submission to be handed in separately, using sensible names.
Tikz-external seems like the perfect fit for this job if the majority of figures are based on tikz/...
0
votes
1
answer
34
views
tikzexternalize and xespotcolor
With package xespotcolor, I can define and use spot colors with XeLaTeX. This works, even together with tikz.
I am, however, having trouble when I try to use spot colors in externalized tikz pictures. ...
0
votes
0
answers
104
views
segmentation fault when executing xdvipdfmx through latexmk using externalise library of tikz/pgf
I'm using latexmk (calling xelatex with pdfxe) and have a makefile around it, that calls the externalised makefile from tikz/pgf. The code worked fine list year (last time compiled June-2020).
...
3
votes
1
answer
143
views
Tikz externalize sub-folders
I am currently externalizing my tikz figures in a separate folder using
\tikzexternalize[prefix=My_folder/]
I would like to externalize the figures in several sub-folders within My_folder. How can I ...
1
vote
1
answer
286
views
TikZ/external: LaTeX Error: Missing \begin{document}
Why do I get this error of missing \begin{document} in the log file therect.log of the externally built image threct.pdf?
P.S. I am sorry for not fully cleaning the code of repeated package loading ...
0
votes
0
answers
79
views
TikZ: Image is up-to-date. error: (file) (pdf backend): internal error: unknown image type
What causes the following error?
===== Image 'rect.tikz' is up-to-date. ======
./rect.tikz:3: error: (file rect.tikz) (pdf backend): internal error: unknown image type
./rect.tikz:3: ==> Fatal ...
1
vote
0
answers
103
views
Problem when exporting pgf/tikz to external image (.pdf, .png)
I want to export one or some couples of images from a .tex file to seperate files in PDF and PNG.
I read the pgf manual v3.1.7a section 52 (External Library) and many posts from our community, also ...
2
votes
1
answer
92
views
Is it possible to cache/externalize each frame in beamer?
Is it somehow possible to cache or externalize each frame in beamer? Similar functionality exists for TikZ pictures (TikZ library "externalize"). The purpose is to speed up the process by ...
0
votes
0
answers
39
views
Automagically scale Tikz-Picture and use Externalization and setting of file name
I am trying to implement the solution to a question: Automagically scale Tikz-Picture AND use Externalization
The answer helps and I managed to do this, however I would like to give each externalized ...