Skip to main content

Questions tagged [tikz-external]

Questions about the externalization library of TikZ/PGF.

Filter by
Sorted by
Tagged with
2 votes
0 answers
18 views

Unable to externalize pgfplots with lualatex [duplicate]

I am working on a long document with a lot of PGF plots and want to externalize the plots to reduce the execution time. As far as I understood the docs, see here and here, externalization requires the ...
albert's user avatar
  • 1,017
3 votes
1 answer
80 views

Clash between breakable tcolorbox with tikz externalize

I have a custom theorem-like environment created using tcolorbox. The environment may need to encompass many pages, so I am using the breakable option when creating it. However, I noticed an error ...
Guilherme Fraga's user avatar
0 votes
1 answer
50 views

Creating Lua filters; tikz externalize trouble

This is a draft of the Lua filter that I plan to use with Pandoc. The goal of this filter is to locate images created synthetically with TikZ (no images imported with `\usegraphicÚ), create a ...
user3204810's user avatar
  • 1,539
0 votes
0 answers
51 views

Optimize tikz Background Drawings

I have a problem with tikz drawings in my latex file. What I'm doing: I generate a latex file automatically based on some input data. The generated file is quite huge (PDF has about 150 pages) In ...
Christi258's user avatar
2 votes
2 answers
96 views

Proper usage of externalizing tikz/standalone with Overleaf

I've attempted to set up Tikz externalization to speed up how fast the compile time is on an Overleaf project I have. I followed the answers provided on the SE question How to externalize TikZ ...
David G.'s user avatar
  • 329
1 vote
1 answer
26 views

tikz/external: Error writing files

The following code used to work before but now it is having trouble to write output files to destination, what is the problem here? Tried solution from this issue but it didn't work command: ...
Felipe9's user avatar
  • 339
0 votes
1 answer
38 views

Why can't tikzexternalize write to a directory above

I use the command \tikzexternalize[prefix=../figures-tikz/] and I got the error message ! I can't write on file `../figures-tikz/BQ-m-meca_0.md5'. If on the other hand I write the command \...
rpapa's user avatar
  • 12.4k
0 votes
1 answer
85 views

Background image (eso-pic) and tikz externalize

I am trying to create a document containing: A cover page image (see 1 below this post) set as background using the package eso-pic. Several tikz pictures that I externalize using \tikzexternalize[up ...
AlMa's user avatar
  • 560
0 votes
0 answers
44 views

`\polymerdelim` issue with `tikz-external` crash

Error when i have both tikz-external and a chemfig molecule \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{external} \tikzsetfigurename{figure_\arabic{part}.\arabic{section}.} % set ...
Felipe9's user avatar
  • 339
1 vote
1 answer
36 views

TikZ library "external" breaks page number count in focus theme

I like the Beamer focus theme, however, when I use it with TikZ library external, it breaks the page number count in the footline. Here is an example: \documentclass{beamer} \usetheme[nofirafonts]{...
antonio's user avatar
  • 1,446
1 vote
0 answers
45 views

'canvas is plane' from tikz external file is screwed

Using Overleaf, I do input of a standalone tikz figure defined like so: % File diagram.tex \documentclass{standalone} \usepackage{tikz} \usepackage{pfgplots} \usetikzlibrary{external} \usetikzlibrary{...
Jav's user avatar
  • 309
0 votes
0 answers
59 views

Externalizing a very large tikz file

I am having trouble and some confusing behaviour while trying to produce a large tikz picture. Here is the minimal example of the problem. I should note that I am doing all the work online on Overleaf....
Salini Mendisi's user avatar
1 vote
1 answer
85 views

lualatex gives compile error when using -jobname with tikz externalization of images

Using TL 2023, this command works lualatex --shell-escape --file-line-error index.tex Gives no error: ... /usr/local/texlive/2023/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) ===== 'mode=...
Nasser's user avatar
  • 20.3k
2 votes
3 answers
212 views

Scaling externalized tikz pictures

I use the following answer in order to scale my tikzpictures. I'd now like to turn to the issue of externalizing figures. The problem is that the autoscale autoid option sometimes need 2 compilations ...
jowe_19's user avatar
  • 991
1 vote
0 answers
138 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
1k 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
30 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
94 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
80 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
23 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.4k
0 votes
1 answer
53 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
  • 131
1 vote
0 answers
45 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
2 votes
1 answer
114 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,612
1 vote
1 answer
70 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,169
1 vote
1 answer
157 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
44 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,549
1 vote
2 answers
94 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
  • 15
0 votes
0 answers
110 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,515
0 votes
0 answers
55 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,051
0 votes
0 answers
48 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
  • 175
0 votes
0 answers
128 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
  • 874
1 vote
0 answers
78 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
49 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
293 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
61 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
98 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,446
0 votes
0 answers
78 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,747
3 votes
2 answers
739 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
  • 693
1 vote
0 answers
340 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
  • 8,964
2 votes
1 answer
472 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
  • 8,964
2 votes
2 answers
486 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
130 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
93 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
  • 339
0 votes
1 answer
75 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
  • 339
1 vote
1 answer
227 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
  • 339
0 votes
1 answer
625 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
  • 587
0 votes
0 answers
39 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
  • 587
1 vote
1 answer
54 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
124 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
1k 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
2 3 4 5
10