Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup with latexmk $aux_dir #46

Open
jdujava opened this issue May 21, 2024 · 11 comments
Open

Setup with latexmk $aux_dir #46

jdujava opened this issue May 21, 2024 · 11 comments

Comments

@jdujava
Copy link

jdujava commented May 21, 2024

Let's have (for example) the following aux_dir setup for latexmk in the file .latexmkrc

# .latexmkrc
$aux_dir = ".aux";
$pdflatex = 'pdflatex --shell-escape';

(I like to avoid clutter of aux/log/... files between tex files)

I was unable to figure it out (worked fine wihout custom aux_dir), I always obtained errors of the type

I can't write on file `robustExternalize/robExt-8ADBC0F9196E3986903555FECC5EFF44.deps'.

even if I tweaked some configuration options from subsection 6.3.5 Configuration of the cache in documentation.

Is there a way to get it to work, or perhaps it needs to be implemented on robust-externalize side (something like set output directory, just for aux directory)? I will gladly provide additional information on my setup, what I tried and what was failing.

@tobiasBora
Copy link
Contributor

This is already covered by the set output directory option, like in:

\robExtConfigure{
  set output directory={.aux}
}

I just tried to be sure and it works on my side, so I'll close the issue. If you still experience an issue with this option, please re-open with a full example.

@jdujava
Copy link
Author

jdujava commented May 21, 2024

Thank you for looking into this!

I tried precisely that. The directory .aux/robustExternalize is created, but there seems to be a problem with compiling the robExt-6____F.tex file, see ___-compilation.log below.

Some files

.latexmkrc
$aux_dir = ".aux";
$pdflatex = 'pdflatex --shell-escape';
example.tex
\documentclass[a4paper,12pt]{article}

\usepackage{tikz}
\usepackage{robust-externalize}
\robExtConfigure{
    % To display instructions in the PDF to manually compile pictures if
    % you forgot/do not want to compile with -shell-escape
    enable fallback to manual mode,
    set output directory={.aux},
}

\begin{document}

\section{Minimal Working Example}

\begin{tikzpictureC}
    \draw (0,0) -- (1,0);
\end{tikzpictureC}

\end{document}
.aux/example.log
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex 2024.5.19)  21 MAY 2024 13:58
entering extended mode
 \write18 enabled.
 file:line:error style messages enabled.
 %&-line parsing enabled.
**example.tex
(./example.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2023/05/17 v1.4n Standard LaTeX file (size option)
)
\c@part=\count188
\c@section=\count189
\c@subsection=\count190
\c@subsubsection=\count191
\c@paragraph=\count192
\c@subparagraph=\count193
\c@figure=\count194
\c@table=\count195
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen140
) (/usr/share/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty (/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty (/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex
\pgfutil@everybye=\toks17
\pgfutil@tempdima=\dimen141
\pgfutil@tempdimb=\dimen142
) (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
\pgfutil@abb=\box51
) (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex (/usr/share/texmf-dist/tex/generic/pgf/pgf.revision.tex)
Package: pgfrcs 2023-01-15 v3.1.10 (3.1.10)
))
Package: pgf 2023-01-15 v3.1.10 (3.1.10)
 (/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics (DPC,SPQR)
 (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2022/05/29 v1.15 key=value parser (DPC)
\KV@toks@=\toks18
) (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2022/03/10 v1.4e Standard LaTeX Graphics (DPC,SPQR)
 (/usr/share/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2021/08/11 v1.11 sin cos tan (DPC)
) (/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 107.
 (/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2022/09/22 v1.2b Graphics/color driver for pdftex
))
\Gin@req@height=\dimen143
\Gin@req@width=\dimen144
) (/usr/share/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
Package: pgfsys 2023-01-15 v3.1.10 (3.1.10)
 (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
\pgfkeys@pathtoks=\toks19
\pgfkeys@temptoks=\toks20
 (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex
\pgfkeys@tmptoks=\toks21
))
\pgf@x=\dimen145
\pgf@y=\dimen146
\pgf@xa=\dimen147
\pgf@ya=\dimen148
\pgf@xb=\dimen149
\pgf@yb=\dimen150
\pgf@xc=\dimen151
\pgf@yc=\dimen152
\pgf@xd=\dimen153
\pgf@yd=\dimen154
\w@pgf@writea=\write3
\r@pgf@reada=\read2
\c@pgf@counta=\count196
\c@pgf@countb=\count197
\c@pgf@countc=\count198
\c@pgf@countd=\count199
\t@pgf@toka=\toks22
\t@pgf@tokb=\toks23
\t@pgf@tokc=\toks24
\pgf@sys@id@count=\count266
 (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg
File: pgf.cfg 2023-01-15 v3.1.10 (3.1.10)
)
Driver file for pgf: pgfsys-pdftex.def
 (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
File: pgfsys-pdftex.def 2023-01-15 v3.1.10 (3.1.10)
 (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def
File: pgfsys-common-pdf.def 2023-01-15 v3.1.10 (3.1.10)
))) (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
File: pgfsyssoftpath.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgfsyssoftpath@smallbuffer@items=\count267
\pgfsyssoftpath@bigbuffer@items=\count268
) (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
File: pgfsysprotocol.code.tex 2023-01-15 v3.1.10 (3.1.10)
)) (/usr/share/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2023/11/15 v3.01 LaTeX color extensions (UK)
 (/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 274.
 (/usr/share/texmf-dist/tex/latex/graphics/mathcolor.ltx)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1350.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1354.
Package xcolor Info: Model `RGB' extended on input line 1366.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1368.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1370.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1371.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1372.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1373.
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
Package: pgfcore 2023-01-15 v3.1.10 (3.1.10)
 (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex
\pgfmath@dimen=\dimen155
\pgfmath@count=\count269
\pgfmath@box=\box52
\pgfmath@toks=\toks25
\pgfmath@stack@operand=\toks26
\pgfmath@stack@operation=\toks27
)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex
\c@pgfmathroundto@lastzeros=\count270
)) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfint.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex
File: pgfcorepoints.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgf@picminx=\dimen156
\pgf@picmaxx=\dimen157
\pgf@picminy=\dimen158
\pgf@picmaxy=\dimen159
\pgf@pathminx=\dimen160
\pgf@pathmaxx=\dimen161
\pgf@pathminy=\dimen162
\pgf@pathmaxy=\dimen163
\pgf@xx=\dimen164
\pgf@xy=\dimen165
\pgf@yx=\dimen166
\pgf@yy=\dimen167
\pgf@zx=\dimen168
\pgf@zy=\dimen169
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex
File: pgfcorepathconstruct.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgf@path@lastx=\dimen170
\pgf@path@lasty=\dimen171
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex
File: pgfcorepathusage.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgf@shorten@end@additional=\dimen172
\pgf@shorten@start@additional=\dimen173
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex
File: pgfcorescopes.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgfpic=\box53
\pgf@hbox=\box54
\pgf@layerbox@main=\box55
\pgf@picture@serial@count=\count271
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex
File: pgfcoregraphicstate.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgflinewidth=\dimen174
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.code.tex
File: pgfcoretransformations.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgf@pt@x=\dimen175
\pgf@pt@y=\dimen176
\pgf@pt@temp=\dimen177
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex
File: pgfcorequick.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex
File: pgfcoreobjects.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex
File: pgfcorepathprocessing.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex
File: pgfcorearrows.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgfarrowsep=\dimen178
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex
File: pgfcoreshade.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgf@max=\dimen179
\pgf@sys@shading@range@num=\count272
\pgf@shadingcount=\count273
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
File: pgfcoreimage.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
File: pgfcoreexternal.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgfexternal@startupbox=\box56
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex
File: pgfcorelayers.code.tex 2023-01-15 v3.1.10 (3.1.10)
)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex
File: pgfcoretransparency.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
File: pgfcorepatterns.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex
File: pgfcorerdf.code.tex 2023-01-15 v3.1.10 (3.1.10)
))) (/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex
File: pgfmoduleshapes.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgfnodeparttextbox=\box57
) (/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex
File: pgfmoduleplot.code.tex 2023-01-15 v3.1.10 (3.1.10)
) (/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty
Package: pgfcomp-version-0-65 2023-01-15 v3.1.10 (3.1.10)
\pgf@nodesepstart=\dimen180
\pgf@nodesepend=\dimen181
) (/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty
Package: pgfcomp-version-1-18 2023-01-15 v3.1.10 (3.1.10)
)) (/usr/share/texmf-dist/tex/latex/pgf/utilities/pgffor.sty (/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex)) (/usr/share/texmf-dist/tex/latex/pgf/math/pgfmath.sty (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex)) (/usr/share/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex
Package: pgffor 2023-01-15 v3.1.10 (3.1.10)
\pgffor@iter=\dimen182
\pgffor@skip=\dimen183
\pgffor@stack=\toks28
\pgffor@toks=\toks29
)) (/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
Package: tikz 2023-01-15 v3.1.10 (3.1.10)
 (/usr/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex
File: pgflibraryplothandlers.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgf@plot@mark@count=\count274
\pgfplotmarksize=\dimen184
)
\tikz@lastx=\dimen185
\tikz@lasty=\dimen186
\tikz@lastxsaved=\dimen187
\tikz@lastysaved=\dimen188
\tikz@lastmovetox=\dimen189
\tikz@lastmovetoy=\dimen190
\tikzleveldistance=\dimen191
\tikzsiblingdistance=\dimen192
\tikz@figbox=\box58
\tikz@figbox@bg=\box59
\tikz@tempbox=\box60
\tikz@tempbox@bg=\box61
\tikztreelevel=\count275
\tikznumberofchildren=\count276
\tikznumberofcurrentchild=\count277
\tikz@fig@count=\count278
 (/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex
File: pgfmodulematrix.code.tex 2023-01-15 v3.1.10 (3.1.10)
\pgfmatrixcurrentrow=\count279
\pgfmatrixcurrentcolumn=\count280
\pgf@matrix@numberofcolumns=\count281
)
\tikz@expandcount=\count282
 (/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex
File: tikzlibrarytopaths.code.tex 2023-01-15 v3.1.10 (3.1.10)
))) (/usr/share/texmf-dist/tex/latex/robust-externalize/robust-externalize.sty
Package: robust-externalize 2.7 Cache anything (tikz, latex, python) in a robust, efficient and pure way.
 (/usr/share/texmf-dist/tex/latex/tools/verbatim.sty
Package: verbatim 2023-11-06 v1.5v LaTeX2e package for verbatim enhancements
\every@verbatim=\toks30
\verbatim@line=\toks31
\verbatim@in@stream=\read3
) (/usr/share/texmf-dist/tex/latex/xsim/xsimverb.sty (/usr/share/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty (/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
Package: expl3 2024-02-20 L3 programming layer (loader) 
 (/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def
File: l3backend-pdftex.def 2024-02-20 L3 backend support: PDF output (pdfTeX)
\l__color_backend_stack_int=\count283
\l__pdf_internal_box=\box62
))
Package: l3keys2e 2024-02-18 LaTeX2e option processing using LaTeX3 keys
)
Package: xsimverb 2022/02/12 v0.4 write environments verbatim to files
\l__xsimverb_tmpa_int=\count284
\l_xsim_line_gobble_int=\count285
) (/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Package: etoolbox 2020/10/05 v2.5k e-TeX tools for LaTeX (JAW)
\etb@tempcnta=\count286
) (/usr/share/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2022/02/03 v1.0f TeX engine tests
) (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
Package: xparse 2024-02-18 L3 Experimental document command parser
) (/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty
Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atveryend package
with kernel methods
)

LaTeX Info: Writing file `./robExt-remove-old-figures.py'.

\openout15 = `robExt-remove-old-figures.py'.



LaTeX Info: Writing file `./robExt-prepare-for-arxiv.py'.

\openout15 = `robExt-prepare-for-arxiv.py'.


\g__robExt_write_list_all_figures_iow=\write4
\openout4 = `example-robExt-all-figures.txt'.

\g__robExt_write_manually_compile_all_missing_figures_iow=\write5
\openout5 = `example-robExt-compile-missing-figures.sh'.

\g__robExt_number_figures_just_compiled_or_to_compile=\count287
\l__xsim_file_contents_iow=\write6
\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\openout6 = `example-robExt-tmp-file-you-can-remove.tmp'.

\robExt@temptoks=\toks32
) (.aux/example.aux)
\openout1 = `example.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
 (/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count288
\scratchdimen=\dimen193
\scratchbox=\box63
\nofMPsegments=\count289
\nofMParguments=\count290
\everyMPshowfont=\toks33
\MPscratchCnt=\count291
\MPscratchDim=\dimen194
\MPnumerator=\count292
\makeMPintoPDFobject=\count293
\everyMPtoPDFconversion=\toks34
) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 485.
 (/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
))
runsystem(cd ".aux" && mkdir -p robustExternalize/)...executed.

\openout6 = `robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F.deps'.

\openout6 = `robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F.tex'.

 Source saved in robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F.tex.
runsystem(cd ".aux" && ( cd robustExternalize/ && pdflatex -halt-on-error "robExt-69DA68DE6DC6554D1390688118A4AB7F.tex") > robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F-compilation.log 2>&1)...executed.

 [robExt]We will start the compilation using: cd robustExternalize/ && pdflatex -halt-on-error "robExt-69DA68DE6DC6554D1390688118A4AB7F.tex".

./example.tex:18: Package robExt Error: The compilation of the code block at line 18 failed:
(robExt)                the following file is indeed missing:
(robExt)               
robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F.pdf.
(robExt)                The compilation command "cd robustExternalize/ &&
(robExt)                pdflatex -halt-on-error
(robExt)                "robExt-69DA68DE6DC6554D1390688118A4AB7F.tex"" used
(robExt)                to compile the environment on line 18 certainly
(robExt)                failed with errors:
(robExt)                vvvvvv
(robExt)                ! I can't write on file
(robExt)                `robExt-69DA68DE6DC6554D1390688118A4AB7F.log'.
(robExt)                (Press Enter to retry, or Control-D to exit; default
(robExt)                file extension is `.log')
(robExt)                Please type another transcript file name:
(robExt)                ! Emergency stop
(robExt)                !  ==> Fatal error occurred, no output PDF file
(robExt)                produced!
(robExt)                
(robExt)                ^^^^^^
(robExt)                See full logs below (you might need to press ENTER
(robExt)                to go to the next error) or in
(robExt)               
robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F-compilation.log.

Type <return> to continue.
 ...                                              
                                                  
l.18 \end
         {tikzpictureC}

LaTeX does not know anything more about this error, sorry.

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.


-------- We print now the full log --------
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't write on file `robExt-69DA68DE6DC6554D1390688118A4AB7F.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name:
! Emergency stop
!  ==> Fatal error occurred, no output PDF file produced!
-------- End of the full log --------

./example.tex:18: Package robExt Error: The compilation of the code block at line 18 failed:
(robExt)                the following file is indeed missing:
(robExt)               
robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F.pdf.
(robExt)                The compilation command "cd robustExternalize/ &&
(robExt)                pdflatex -halt-on-error
(robExt)                "robExt-69DA68DE6DC6554D1390688118A4AB7F.tex"" used
(robExt)                to compile the environment on line 18 certainly
(robExt)                failed with errors:
(robExt)                vvvvvv
(robExt)                ! I can't write on file
(robExt)                `robExt-69DA68DE6DC6554D1390688118A4AB7F.log'.
(robExt)                (Press Enter to retry, or Control-D to exit; default
(robExt)                file extension is `.log')
(robExt)                Please type another transcript file name:
(robExt)                ! Emergency stop
(robExt)                !  ==> Fatal error occurred, no output PDF file
(robExt)                produced!
(robExt)                
(robExt)                ^^^^^^
(robExt)                See full logs above or in
(robExt)               
robustExternalize/robExt-69DA68DE6DC6554D1390688118A4AB7F-compilation.log.

Type <return> to continue.
 ...                                              
                                                  
l.18 \end
         {tikzpictureC}

LaTeX does not know anything more about this error, sorry.

Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.


Finished to include the file. [1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (.aux/example.aux)
 ***********
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
 ***********
 ) 
Here is how much of TeX's memory you used:
 13919 strings out of 476042
 310970 string characters out of 5792598
 1925187 words of memory out of 5000000
 35818 multiletter control sequences out of 15000+600000
 558973 words of font info for 39 fonts, out of 8000000 for 9000
 24 hyphenation exceptions out of 8191
 102i,5n,107p,1283b,382s stack positions out of 10000i,1000n,20000p,200000b,200000s
</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb>
Output written on .aux/example.pdf (1 page, 20348 bytes).
PDF statistics:
 21 PDF objects out of 1000 (max. 8388607)
 13 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 500000)
 13 words of extra memory for PDF output out of 10000 (max. 10000000)
.aux/robustExternalize/robExt-6_____F-compilation.log
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't write on file `robExt-69DA68DE6DC6554D1390688118A4AB7F.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name: 
! Emergency stop
!  ==> Fatal error occurred, no output PDF file produced!

More information about my setup:

  • running latexmk from neovim with vimtex plugin (runs something like latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode -pdf -emulate-aux-dir -auxdir=.aux)
$ latexmk --version
Latexmk, John Collins, 31 Jan. 2024. Version 4.83

Do you have any idea where the problem could be?
@tobiasBora Would like to reopen the issue, but I don't have the option :).

@tobiasBora tobiasBora reopened this May 21, 2024
@tobiasBora
Copy link
Contributor

Really?? That is really confusing, I tried to run it with exactly your command and files and it works for me:

Full logs and files
╭─    /tmp/robust-externalize    master ?6 ··································································································································· ✔  3s   17:37:54  ─╮
╰─❯ mkdir test                                                                                                                                                                                                 ─╯

╭─    /tmp/robust-externalize    master ?6 ·········································································································································· ✔  17:38:12  ─╮
╰─❯ cp robust-externalize.sty test                                                                                                                                                                             ─╯

╭─    /tmp/robust-externalize    master ?7 ·········································································································································· ✔  17:38:19  ─╮
╰─❯ cp example.tex test                                                                                                                                                                                        ─╯

╭─    /tmp/robust-externalize    master ?7 ·········································································································································· ✔  17:38:24  ─╮
╰─❯ cp .latexmkrc test                                                                                                                                                                                         ─╯

╭─    /tmp/robust-externalize    master ?7 ·········································································································································· ✔  17:38:31  ─╮
╰─❯ cd test                                                                                                                                                                                                    ─╯

╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:38:34  ─╮
╰─❯ ls -al                                                                                                                                                                                                     ─╯
total 103
drwxr-xr-x 2 leo users      5 mai   21 17:38 .
drwxr-xr-x 8 leo users     46 mai   21 17:38 ..
-rw-r--r-- 1 leo users    445 mai   21 17:38 example.tex
-rw-r--r-- 1 leo users     57 mai   21 17:38 .latexmkrc
-rw-r--r-- 1 leo users 190664 mai   21 17:38 robust-externalize.sty

╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:38:37  ─╮
╰─❯ sha256sum example.tex                                                                                                                                                                                      ─╯
d655a5f0a2cbdae7891fb57714e4601da958ea54ff4fc2f39dd75d8e3cf3b9fc  example.tex

╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:38:44  ─╮
╰─❯ sha256sum .latexmkrc                                                                                                                                                                                       ─╯
dbf92dd0f265def88cd8d2e36b15085fae8fea1a070b3551062606e02fa45b90  .latexmkrc

╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:38:51  ─╮
╰─❯ sha256sum robust-externalize.sty                                                                                                                                                                           ─╯
e32c8bf692d61279ae1ef9cca3205ce3b50e2f8d3eaa6f389583a66e4eb04be7  robust-externalize.sty

╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:38:56  ─╮
╰─❯ cat .latexmkrc                                                                                                                                                                                             ─╯
$aux_dir = ".aux";
$pdflatex = 'pdflatex --shell-escape';%                                                                                                                                                                           
╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:38:59  ─╮
╰─❯ cat example.tex                                                                                                                                                                                            ─╯
\documentclass[a4paper,12pt]{article}

\usepackage{tikz}
\usepackage{robust-externalize}
\robExtConfigure{
    % To display instructions in the PDF to manually compile pictures if
    % you forgot/do not want to compile with -shell-escape
    enable fallback to manual mode,
    set output directory={.aux},
}

\begin{document}

\section{Minimal Working Example}

\begin{tikzpictureC}
    \draw (0,0) -- (1,0);
\end{tikzpictureC}

\end{document}%                                                                                                                                                                                                   
╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:39:03  ─╮
╰─❯ cat robust-externalize.sty | head                                                                                                                                                                          ─╯
\ProvidesPackage{robust-externalize}[2024/03/19 v2.9+unstable Cache anything (tikz, latex, python) in a robust, efficient and pure way.]
% todo: 
% change order argument replace from list, it is hard to read this way

\RequirePackage{pgfkeys} % We use the /robExt/... path to store our keys.
\RequirePackage{pgffor} % For the .list keys
\RequirePackage{graphicx} % For the includegraphics command
\RequirePackage{verbatim} % For the \verbatim command, useful for debugging purpose for instance
\RequirePackage{xsimverb} % To easily write verbatim code to files
\RequirePackage{etoolbox} % To easily write verbatim code to files

╭─    /tmp/robust-externalize/test    master ?7 ······························································································································ PIPE|0 ✔  17:39:14  ─╮
╰─❯ latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex                                                                                      ─╯
Rc files read:
  /home/leo/.latexmkrc
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 10 Jan. 2024. Version 4.82a.
Latexmk: making auxiliary directory '.aux'
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Category 'other':
  Rerun of 'pdflatex' forced or previously required

------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex --shell-escape  -file-line-error -synctex=1 -interaction=nonstopmode -recorder -output-directory=".aux"  "example.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/nixos.org) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./example.tex
LaTeX2e <2023-11-01>
L3 programming layer <2024-01-04>

(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class

(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/size12.clo))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/frontendlayer/tikz.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/basiclayer/pgf.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgfrcs.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfutil-common.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfutil-latex.def)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfrcs.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/pgf.revision.tex)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/basiclayer/pgfcore.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/graphicx.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/keyval.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/graphics.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/trig.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/graphics.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-def/pdftex.def)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/systemlayer/pgfsys.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeys.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgf.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys-pdftex.def
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys-common-pdf.def)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/xcolor/xcolor.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/color.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/mathcolor.ltx))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcore.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmath.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathutil.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathparser.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.basic.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.random.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.comparison.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.base.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.round.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.misc.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathcalc.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfloat.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfint.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathusage.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoretransformations.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorequick.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreexternal.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoretransparency.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepatterns.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmoduleshapes.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmoduleplot.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/compatibility/pgfcomp-version-0-65.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/compatibility/pgfcomp-version-1-18.sty))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgffor.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgfkeys.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeys.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/math/pgfmath.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmath.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgffor.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/libraries/pgflibraryplothandlers.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmodulematrix.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex)))
(./robust-externalize.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/tools/verbatim.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/xsim/xsimverb.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3packages/l3keys2e/l3keys2e.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3kernel/expl3.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3backend/l3backend-pdftex.def))))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/etoolbox/etoolbox.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/iftex/iftex.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3packages/xparse/xparse.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/atveryend-ltx.sty)

LaTeX Info: Writing file `./robExt-remove-old-figures.py'.



LaTeX Info: Writing file `./robExt-prepare-for-arxiv.py'.


) (.aux/example.aux)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/epstopdf-pkg/epstopdf-base.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/latexconfig/epstopdf-sys.cfg))
Source saved in robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.tex.
[robExt]We will start the compilation using: cd robustExternalize/ && pdflatex 
-halt-on-error "robExt-F467CCED0540E56D3C65A57486B0E418.tex".
(.aux/robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418-out.tex)
Finished to include the file. [1{/nix/store/93vlf2rmk47650zdfn4sdjli1n090fd6-te
xlive-combined-2023/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <.aux/r
obustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.pdf>]
(.aux/example.aux) )</nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combin
ed-2023-texmfdist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></nix/store/yzx4ifd
93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/fonts/type1/public/am
sfonts/cm/cmr12.pfb>
Output written on .aux/example.pdf (1 page, 21028 bytes).
SyncTeX written on .aux/example.synctex.gz.
Transcript written on .aux/example.log.
Latexmk: Moving '.aux/example.pdf' to 'example.pdf'
Latexmk: Moving '.aux/example.synctex.gz' to 'example.synctex.gz'
Latexmk: Getting log file '.aux/example.log'
Latexmk: Examining '.aux/example.fls'
Latexmk: Examining '.aux/example.log'
Latexmk: Log file says output to '.aux/example.pdf'
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Changed files or newly in use/created:
  .aux/example-robExt-tmp-file-you-can-remove.tmp
  .aux/example.aux

------------
Run number 2 of rule 'pdflatex'
------------
------------
Running 'pdflatex --shell-escape  -file-line-error -synctex=1 -interaction=nonstopmode -recorder -output-directory=".aux"  "example.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/nixos.org) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./example.tex
LaTeX2e <2023-11-01>
L3 programming layer <2024-01-04>

(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class

(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/size12.clo))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/frontendlayer/tikz.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/basiclayer/pgf.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgfrcs.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfutil-common.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfutil-latex.def)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfrcs.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/pgf.revision.tex)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/basiclayer/pgfcore.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/graphicx.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/keyval.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/graphics.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/trig.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/graphics.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-def/pdftex.def)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/systemlayer/pgfsys.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeys.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgf.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys-pdftex.def
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys-common-pdf.def)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/xcolor/xcolor.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/color.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/mathcolor.ltx))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcore.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmath.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathutil.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathparser.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.basic.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.random.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.comparison.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.base.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.round.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.misc.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathcalc.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfloat.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfint.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathusage.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoretransformations.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorequick.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreexternal.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoretransparency.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepatterns.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmoduleshapes.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmoduleplot.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/compatibility/pgfcomp-version-0-65.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/compatibility/pgfcomp-version-1-18.sty))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgffor.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgfkeys.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeys.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/math/pgfmath.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmath.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgffor.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/libraries/pgflibraryplothandlers.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmodulematrix.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex)))
(./robust-externalize.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/tools/verbatim.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/xsim/xsimverb.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3packages/l3keys2e/l3keys2e.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3kernel/expl3.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3backend/l3backend-pdftex.def))))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/etoolbox/etoolbox.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/iftex/iftex.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3packages/xparse/xparse.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/atveryend-ltx.sty)

LaTeX Warning: Writing or overwriting file `robExt-remove-old-figures.py'.



LaTeX Warning: Writing or overwriting file `robExt-prepare-for-arxiv.py'.


) (.aux/example.aux)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/epstopdf-pkg/epstopdf-base.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/latexconfig/epstopdf-sys.cfg))
The file robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.tex already 
exists.

No need to recompile robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.
pdf
(.aux/robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418-out.tex)
Finished to include the file. [1{/nix/store/93vlf2rmk47650zdfn4sdjli1n090fd6-te
xlive-combined-2023/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <.aux/r
obustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.pdf>]
(.aux/example.aux) )</nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combin
ed-2023-texmfdist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></nix/store/yzx4ifd
93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/fonts/type1/public/am
sfonts/cm/cmr12.pfb>
Output written on .aux/example.pdf (1 page, 21028 bytes).
SyncTeX written on .aux/example.synctex.gz.
Transcript written on .aux/example.log.
Latexmk: Moving '.aux/example.pdf' to 'example.pdf'
Latexmk: Moving '.aux/example.synctex.gz' to 'example.synctex.gz'
Latexmk: Getting log file '.aux/example.log'
Latexmk: Examining '.aux/example.fls'
Latexmk: Examining '.aux/example.log'
Latexmk: Log file says output to '.aux/example.pdf'
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Changed files or newly in use/created:
  .aux/robExt-prepare-for-arxiv.py
  .aux/robExt-remove-old-figures.py

------------
Run number 3 of rule 'pdflatex'
------------
------------
Running 'pdflatex --shell-escape  -file-line-error -synctex=1 -interaction=nonstopmode -recorder -output-directory=".aux"  "example.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023/nixos.org) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./example.tex
LaTeX2e <2023-11-01>
L3 programming layer <2024-01-04>

(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class

(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/size12.clo))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/frontendlayer/tikz.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/basiclayer/pgf.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgfrcs.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfutil-common.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfutil-latex.def)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfrcs.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/pgf.revision.tex)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/basiclayer/pgfcore.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/graphicx.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/keyval.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/graphics.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/trig.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/graphics.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-def/pdftex.def)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/systemlayer/pgfsys.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeys.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeyslibraryfiltered.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgf.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys-pdftex.def
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsys-common-pdf.def)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/xcolor/xcolor.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics-cfg/color.cfg)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/graphics/mathcolor.ltx))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcore.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmath.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathutil.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathparser.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.basic.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.trigonometric.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.random.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.comparison.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.base.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.round.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.misc.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfunctions.integerarithmetics.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathcalc.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmathfloat.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfint.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathusage.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoretransformations.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorequick.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepathprocessing.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoreexternal.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcoretransparency.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorepatterns.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmoduleshapes.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmoduleplot.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/compatibility/pgfcomp-version-0-65.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/compatibility/pgfcomp-version-1-18.sty))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgffor.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/utilities/pgfkeys.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgfkeys.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/pgf/math/pgfmath.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/math/pgfmath.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/utilities/pgffor.code.tex))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/libraries/pgflibraryplothandlers.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/modules/pgfmodulematrix.code.tex)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex)))
(./robust-externalize.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/tools/verbatim.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/xsim/xsimverb.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3packages/l3keys2e/l3keys2e.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3kernel/expl3.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3backend/l3backend-pdftex.def))))
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/etoolbox/etoolbox.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/generic/iftex/iftex.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/l3packages/xparse/xparse.sty)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/base/atveryend-ltx.sty)

LaTeX Warning: Writing or overwriting file `robExt-remove-old-figures.py'.



LaTeX Warning: Writing or overwriting file `robExt-prepare-for-arxiv.py'.


) (.aux/example.aux)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
)
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/epstopdf-pkg/epstopdf-base.sty
(/nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/te
x/latex/latexconfig/epstopdf-sys.cfg))
The file robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.tex already 
exists.

No need to recompile robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.
pdf
(.aux/robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418-out.tex)
Finished to include the file. [1{/nix/store/93vlf2rmk47650zdfn4sdjli1n090fd6-te
xlive-combined-2023/share/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <.aux/r
obustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.pdf>]
(.aux/example.aux) )</nix/store/yzx4ifd93w0ws57xvxb935dmlbgag02c-texlive-combin
ed-2023-texmfdist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></nix/store/yzx4ifd
93w0ws57xvxb935dmlbgag02c-texlive-combined-2023-texmfdist/fonts/type1/public/am
sfonts/cm/cmr12.pfb>
Output written on .aux/example.pdf (1 page, 21028 bytes).
SyncTeX written on .aux/example.synctex.gz.
Transcript written on .aux/example.log.
Latexmk: Moving '.aux/example.pdf' to 'example.pdf'
Latexmk: Moving '.aux/example.synctex.gz' to 'example.synctex.gz'
Latexmk: Getting log file '.aux/example.log'
Latexmk: Examining '.aux/example.fls'
Latexmk: Examining '.aux/example.log'
Latexmk: Log file says output to '.aux/example.pdf'
Latexmk: All targets () are up-to-date


╭─    /tmp/robust-externalize/test    master ?7 ······························································································································ ✔  3s   17:39:30  ─╮
╰─❯ d                                                                                                                                                                                                          ─╯
[1] 1438823

╭─    /tmp/robust-externalize/test    master ?7 ································································································································· ✔    17:39:35  ─╮
╰─❯                                                                                                                                                                                                            ─╯
[1]  + done       dolphin .
╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:39:35  ─╮
╰─❯ tree                                                                                                                                                                                                       ─╯
.
├── example.pdf
├── example.synctex.gz
├── example.tex
└── robust-externalize.sty

1 directory, 4 files

╭─    /tmp/robust-externalize/test    master ?7 ····································································································································· ✔  17:41:30  ─╮
╰─❯ tree -a                                                                                                                                                                                                    ─╯
.
├── .aux
│   ├── example.aux
│   ├── example.fdb_latexmk
│   ├── example.fls
│   ├── example.log
│   ├── example-robExt-all-figures.txt
│   ├── example-robExt-compile-missing-figures.sh
│   ├── example-robExt-tmp-file-you-can-remove.tmp
│   ├── robExt-prepare-for-arxiv.py
│   ├── robExt-remove-old-figures.py
│   └── robustExternalize
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418.aux
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418-compilation.log
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418.deps
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418.log
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418-out.tex
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418.pdf
│       └── robExt-F467CCED0540E56D3C65A57486B0E418.tex
├── example.pdf
├── example.synctex.gz
├── example.tex
├── .latexmkrc
└── robust-externalize.sty

3 directories, 21 files

I’m wondering, how have you installed robust-externalize? Maybe you have an outdated version, can you try by downloading the .sty file from github and put it at the root of your project, and run exactly the above commands?

@jdujava
Copy link
Author

jdujava commented May 21, 2024

Really?? That is really confusing, I tried to run it with exactly your command and files and it works for me:

Indeed, it really is confusing. I have installed latest texlive on Arch. Anyway, even with .sty from github, the compilation hangs.

Running following script hangs on compiling .aux/robustExternalize/robExt-____.tex. Below, I include both output until hang, and also after aborting with Ctrl+d.

#!/bin/sh
# minimal-example.sh

echo "———————————— \$ ls -la"
ls -la
echo "———————————— \$ cat .latexmkrc"
cat .latexmkrc
echo "———————————— \$ sha256sum .latexmkrc"
sha256sum .latexmkrc
echo "———————————— \$ cat example.tex"
cat example.tex
echo "———————————— \$ sha256sum example.tex"
sha256sum example.tex
echo "———————————— \$ head robust-externalize.sty"
head robust-externalize.sty
echo "———————————— \$ sha256sum robust-externalize.sty"
sha256sum robust-externalize.sty

echo "———————————— \$ latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex"
latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex

echo "———————————— \$ tree -a"
tree -a

echo "———————————— \$ cat .aux/robustExternalize/*.log"
cat .aux/robustExternalize/*.log
Only up to the hang
———————————— $ ls -la
total 208
drwxr-xr-x 2 jonas jonas   4096 May 21 19:08 .
drwxr-xr-x 3 jonas jonas   4096 May 21 19:08 ..
-rw-r--r-- 1 jonas jonas    446 May 21 19:02 example.tex
-rw-r--r-- 1 jonas jonas     58 May 21 19:02 .latexmkrc
-rwxr-xr-x 1 jonas jonas   1086 May 21 19:08 minimal-example.sh
-rw-r--r-- 1 jonas jonas 190664 May 21 19:02 robust-externalize.sty
———————————— $ cat .latexmkrc
$aux_dir = ".aux";
$pdflatex = 'pdflatex --shell-escape';
———————————— $ sha256sum .latexmkrc
4d9618cdcb40868fd5e8826c5acf0ae9c9b482c1f2604bbde49f7415759082d7  .latexmkrc
———————————— $ cat example.tex
\documentclass[a4paper,12pt]{article}

\usepackage{tikz}
\usepackage{robust-externalize}
\robExtConfigure{
    % To display instructions in the PDF to manually compile pictures if
    % you forgot/do not want to compile with -shell-escape
    enable fallback to manual mode,
    set output directory={.aux},
}

\begin{document}

\section{Minimal Working Example}

\begin{tikzpictureC}
    \draw (0,0) -- (1,0);
\end{tikzpictureC}

\end{document}
———————————— $ sha256sum example.tex
9cf912c118edef90c4691c0b1f10e9c192d03a094ddcff2a1715c4cbdfd53941  example.tex
———————————— $ head robust-externalize.sty
\ProvidesPackage{robust-externalize}[2024/03/19 v2.9+unstable Cache anything (tikz, latex, python) in a robust, efficient and pure way.]
% todo: 
% change order argument replace from list, it is hard to read this way

\RequirePackage{pgfkeys} % We use the /robExt/... path to store our keys.
\RequirePackage{pgffor} % For the .list keys
\RequirePackage{graphicx} % For the includegraphics command
\RequirePackage{verbatim} % For the \verbatim command, useful for debugging purpose for instance
\RequirePackage{xsimverb} % To easily write verbatim code to files
\RequirePackage{etoolbox} % To easily write verbatim code to files
———————————— $ sha256sum robust-externalize.sty
e32c8bf692d61279ae1ef9cca3205ce3b50e2f8d3eaa6f389583a66e4eb04be7  robust-externalize.sty
———————————— $ latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex
Rc files read:
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 31 Jan. 2024. Version 4.83.
Latexmk: making auxiliary directory '.aux'
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Category 'other':
  Rerun of 'pdflatex' forced or previously required:
    Reason or flag: 'Initial setup'

------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex --shell-escape  -file-line-error -synctex=1 -interaction=nonstopmode -recorder -output-directory=".aux"  "example.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./example.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def)
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/pgf.revision.tex)))
(/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/usr/share/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.te
x)) (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)))
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/usr/share/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code
.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.te
x) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics
.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)

(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.code.t
ex) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.te
x) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex)
 (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)
(/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty)
(/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty))
(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
(/usr/share/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.te
x) (/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
topaths.code.tex))) (./robust-externalize.sty
(/usr/share/texmf-dist/tex/latex/tools/verbatim.sty)
(/usr/share/texmf-dist/tex/latex/xsim/xsimverb.sty
(/usr/share/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def))))
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty)

LaTeX Info: Writing file `./robExt-remove-old-figures.py'.



LaTeX Info: Writing file `./robExt-prepare-for-arxiv.py'.


) (.aux/example.aux) (/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii

[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
Source saved in robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.tex.
Full output
———————————— $ ls -la
total 208
drwxr-xr-x 2 jonas jonas   4096 May 21 19:08 .
drwxr-xr-x 3 jonas jonas   4096 May 21 19:08 ..
-rw-r--r-- 1 jonas jonas    446 May 21 19:02 example.tex
-rw-r--r-- 1 jonas jonas     58 May 21 19:02 .latexmkrc
-rwxr-xr-x 1 jonas jonas   1086 May 21 19:08 minimal-example.sh
-rw-r--r-- 1 jonas jonas 190664 May 21 19:02 robust-externalize.sty
———————————— $ cat .latexmkrc
$aux_dir = ".aux";
$pdflatex = 'pdflatex --shell-escape';
———————————— $ sha256sum .latexmkrc
4d9618cdcb40868fd5e8826c5acf0ae9c9b482c1f2604bbde49f7415759082d7  .latexmkrc
———————————— $ cat example.tex
\documentclass[a4paper,12pt]{article}

\usepackage{tikz}
\usepackage{robust-externalize}
\robExtConfigure{
    % To display instructions in the PDF to manually compile pictures if
    % you forgot/do not want to compile with -shell-escape
    enable fallback to manual mode,
    set output directory={.aux},
}

\begin{document}

\section{Minimal Working Example}

\begin{tikzpictureC}
    \draw (0,0) -- (1,0);
\end{tikzpictureC}

\end{document}
———————————— $ sha256sum example.tex
9cf912c118edef90c4691c0b1f10e9c192d03a094ddcff2a1715c4cbdfd53941  example.tex
———————————— $ head robust-externalize.sty
\ProvidesPackage{robust-externalize}[2024/03/19 v2.9+unstable Cache anything (tikz, latex, python) in a robust, efficient and pure way.]
% todo: 
% change order argument replace from list, it is hard to read this way

\RequirePackage{pgfkeys} % We use the /robExt/... path to store our keys.
\RequirePackage{pgffor} % For the .list keys
\RequirePackage{graphicx} % For the includegraphics command
\RequirePackage{verbatim} % For the \verbatim command, useful for debugging purpose for instance
\RequirePackage{xsimverb} % To easily write verbatim code to files
\RequirePackage{etoolbox} % To easily write verbatim code to files
———————————— $ sha256sum robust-externalize.sty
e32c8bf692d61279ae1ef9cca3205ce3b50e2f8d3eaa6f389583a66e4eb04be7  robust-externalize.sty
———————————— $ latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex
Rc files read:
  .latexmkrc
Latexmk: This is Latexmk, John Collins, 31 Jan. 2024. Version 4.83.
Latexmk: making auxiliary directory '.aux'
No existing .aux file, so I'll make a simple one, and require run of *latex.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex':  Reasons for rerun
Category 'other':
  Rerun of 'pdflatex' forced or previously required:
    Reason or flag: 'Initial setup'

------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex --shell-escape  -file-line-error -synctex=1 -interaction=nonstopmode -recorder -output-directory=".aux"  "example.tex"'
------------
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./example.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size12.clo))
(/usr/share/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def)
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/pgf.revision.tex)))
(/usr/share/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/share/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(/usr/share/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeyslibraryfiltered.code.te
x)) (/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def)))
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex))
(/usr/share/texmf-dist/tex/latex/xcolor/xcolor.sty
(/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg)
(/usr/share/texmf-dist/tex/latex/graphics/mathcolor.ltx))
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric.code
.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.code.te
x) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.integerarithmetics
.code.tex) (/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfint.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.code.tex
) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code.tex)

(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.code.t
ex) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.code.te
x) (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code.tex)
 (/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorerdf.code.tex)))
(/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)
(/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.sty)
(/usr/share/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.sty))
(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(/usr/share/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
(/usr/share/texmf-dist/tex/latex/pgf/math/pgfmath.sty
(/usr/share/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex))
(/usr/share/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(/usr/share/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.te
x) (/usr/share/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(/usr/share/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrary
topaths.code.tex))) (./robust-externalize.sty
(/usr/share/texmf-dist/tex/latex/tools/verbatim.sty)
(/usr/share/texmf-dist/tex/latex/xsim/xsimverb.sty
(/usr/share/texmf-dist/tex/latex/l3packages/l3keys2e/l3keys2e.sty
(/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/share/texmf-dist/tex/latex/l3backend/l3backend-pdftex.def))))
(/usr/share/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(/usr/share/texmf-dist/tex/generic/iftex/iftex.sty)
(/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/share/texmf-dist/tex/latex/base/atveryend-ltx.sty)

LaTeX Info: Writing file `./robExt-remove-old-figures.py'.



LaTeX Info: Writing file `./robExt-prepare-for-arxiv.py'.


) (.aux/example.aux) (/usr/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii

[Loading MPS to PDF converter (version 2006.09.02).]
) (/usr/share/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
(/usr/share/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
Source saved in robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.tex.
[robExt]We will start the compilation using: cd robustExternalize/ && pdflatex 
-halt-on-error "robExt-F467CCED0540E56D3C65A57486B0E418.tex".

./example.tex:18: Package robExt Error: The compilation of the code block at li
ne 18 failed:
(robExt)                the following file is indeed missing:
(robExt)               
robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.pdf.
(robExt)                The compilation command "cd robustExternalize/ &&
(robExt)                pdflatex -halt-on-error
(robExt)                "robExt-F467CCED0540E56D3C65A57486B0E418.tex"" used
(robExt)                to compile the environment on line 18 certainly
(robExt)                failed with errors:
(robExt)                vvvvvv
(robExt)                ! I can't write on file
(robExt)                `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(robExt)                (Press Enter to retry, or Control-D to exit; default
(robExt)                file extension is `.log')
(robExt)                Please type another transcript file name: ! I can't
(robExt)                write on file
(robExt)                `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(robExt)                (Press Enter to retry, or Control-D to exit; default
(robExt)                file extension is `.log')
(robExt)                ! Emergency stop
(robExt)                !  ==> Fatal error occurred, no output PDF file
(robExt)                produced!
(robExt)                
(robExt)                ^^^^^^
(robExt)                See full logs below (you might need to press ENTER
(robExt)                to go to the next error) or in
(robExt)               
robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418-compilation.log.

Type <return> to continue.
 ...                                              
                                                  
l.18 \end
         {tikzpictureC}
-------- We print now the full log --------
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (pre
loaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't write on file `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name: ! I can't write on file `robExt-F467C
CED0540E56D3C65A57486B0E418.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name:
! Emergency stop
!  ==> Fatal error occurred, no output PDF file produced!
-------- End of the full log --------

./example.tex:18: Package robExt Error: The compilation of the code block at li
ne 18 failed:
(robExt)                the following file is indeed missing:
(robExt)               
robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418.pdf.
(robExt)                The compilation command "cd robustExternalize/ &&
(robExt)                pdflatex -halt-on-error
(robExt)                "robExt-F467CCED0540E56D3C65A57486B0E418.tex"" used
(robExt)                to compile the environment on line 18 certainly
(robExt)                failed with errors:
(robExt)                vvvvvv
(robExt)                ! I can't write on file
(robExt)                `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(robExt)                (Press Enter to retry, or Control-D to exit; default
(robExt)                file extension is `.log')
(robExt)                Please type another transcript file name: ! I can't
(robExt)                write on file
(robExt)                `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(robExt)                (Press Enter to retry, or Control-D to exit; default
(robExt)                file extension is `.log')
(robExt)                ! Emergency stop
(robExt)                !  ==> Fatal error occurred, no output PDF file
(robExt)                produced!
(robExt)                
(robExt)                ^^^^^^
(robExt)                See full logs above or in
(robExt)               
robustExternalize/robExt-F467CCED0540E56D3C65A57486B0E418-compilation.log.

Type <return> to continue.
 ...                                              
                                                  
l.18 \end
         {tikzpictureC}
Finished to include the file. [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.
map}] (.aux/example.aux) )
(see the transcript file for additional information)</usr/share/texmf-dist/font
s/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texmf-dist/fonts/type1/public
/amsfonts/cm/cmr12.pfb>
Output written on .aux/example.pdf (1 page, 20348 bytes).
SyncTeX written on .aux/example.synctex.gz.
Transcript written on .aux/example.log.
Latexmk: Moving '.aux/example.pdf' to 'example.pdf'
Latexmk: Moving '.aux/example.synctex.gz' to 'example.synctex.gz'
Latexmk: Getting log file '.aux/example.log'
Latexmk: Examining '.aux/example.fls'
Latexmk: Examining '.aux/example.log'
Latexmk: Log file says output to '.aux/example.pdf'
Latexmk: Errors, so I did not complete making targets
Collected error summary (may duplicate other messages):
  pdflatex: Command for 'pdflatex' gave return code 1
      Refer to '.aux/example.log' and/or above output for details

———————————— $ tree -a
.
├── .aux
│   ├── example.aux
│   ├── example.fdb_latexmk
│   ├── example.fls
│   ├── example.log
│   ├── example-robExt-all-figures.txt
│   ├── example-robExt-compile-missing-figures.sh
│   ├── example-robExt-tmp-file-you-can-remove.tmp
│   ├── robExt-prepare-for-arxiv.py
│   ├── robExt-remove-old-figures.py
│   └── robustExternalize
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418-compilation.log
│       ├── robExt-F467CCED0540E56D3C65A57486B0E418.deps
│       └── robExt-F467CCED0540E56D3C65A57486B0E418.tex
├── example.pdf
├── example.synctex.gz
├── example.tex
├── .latexmkrc
├── minimal-example.sh
└── robust-externalize.sty

3 directories, 18 files
———————————— $ cat .aux/robustExternalize/*.log
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't write on file `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name: ! I can't write on file `robExt-F467CCED0540E56D3C65A57486B0E418.log'.
(Press Enter to retry, or Control-D to exit; default file extension is `.log')
Please type another transcript file name: 
! Emergency stop
!  ==> Fatal error occurred, no output PDF file produced!

Do you have any idea why this might be the case? I noticed that your latexmk also found .latexmkrc in home directory, do you have there anything possibly relevant?

@tobiasBora
Copy link
Contributor

Sorry for my long answer, I was quite busy and then completely forgot this issue.

Thanks a lot for taking the time to create this MWE it is very helpful… So I still couldn't reproduce it with my LaTeX version (2023), so I'm starting to wonder if LaTeX has not broken something in the more recent version you use (2024). Nix does not package texlive 2024 for what I see, so it's hard for me to test with a much more recent package. For the fun, I tried to make a fully reproducible nix build. This one should work (otherwise something really strange is going on as it also clears the environment variables, start it from a different user etc, pins the complete set of dependencies). To test it, just install nix like sh <(curl -L https://nixos.org/nix/install) --daemon if you have SE linux disabled (or see https://nixos.org/download/), then put this in default.nix in any place you like, and run nix-build from this folder. You should have a folder ./result containing the pdf.

let
  pkgs = import (builtins.fetchTarball {
    name = "nixos-2024-07-09";
    url = "https://github.com/nixos/nixpkgs/archive/0ec7a8889bfb5e54375b06327e72aef66f295975.tar.gz";
    sha256 = "sha256:1ps0lrc5mjvdnbzhj9knv695ypj9yvvzqgf828cq4xyhq05c3ng7";
  }) {};
  robustExternalize = pkgs.fetchurl {
    url = "https://raw.githubusercontent.com/leo-colisson/robust-externalize/75beeaa333c21df72f30db850a354034d7cfab3b/robust-externalize.sty";
    sha256 = "sha256-kMsO+Js2KCFbl0aPOd0aVfVPNI+SMwCxebbXKl92xWM=";
  };
in pkgs.stdenv.mkDerivation {
  name = "reproduceIssue";
  buildInputs = [
    (pkgs.texlive.combine {
      inherit (pkgs.texlive) scheme-basic latexmk xsim pgf etoolbox standalone;
    })
    pkgs.tree
  ];

  unpackPhase = ''
    cp ${robustExternalize} robust-externalize.sty
    cat << EOF > .latexmkrc
    \$aux_dir = ".aux";
    \$pdflatex = 'pdflatex --shell-escape';
    EOF
    cat << EOF > example.tex
    \documentclass[a4paper,12pt]{article}
    
    \usepackage{tikz}
    \usepackage{robust-externalize}
    \robExtConfigure{
        % To display instructions in the PDF to manually compile pictures if
        % you forgot/do not want to compile with -shell-escape
        enable fallback to manual mode,
        set output directory={.aux},
    }
    
    \begin{document}
    
    \section{Minimal Working Example}
    
    \begin{tikzpictureC}
        \draw (0,0) -- (1,0);
    \end{tikzpictureC}
    
    \end{document}
    EOF
  '';
  
  buildPhase = ''
    echo "———————————— \$ ls -la"
    ls -la
    echo "———————————— \$ cat .latexmkrc"
    cat .latexmkrc
    echo "———————————— \$ sha256sum .latexmkrc"
    sha256sum .latexmkrc
    echo "———————————— \$ cat example.tex"
    cat example.tex
    echo "———————————— \$ sha256sum example.tex"
    sha256sum example.tex
    echo "———————————— \$ head robust-externalize.sty"
    head robust-externalize.sty
    echo "———————————— \$ sha256sum robust-externalize.sty"
    sha256sum robust-externalize.sty
    
    echo "———————————— \$ latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex"
    latexmk -verbose -file-line-error -synctex=1 -interaction=nonstopmode  -pdf -emulate-aux-dir -auxdir=.aux example.tex
    
    echo "———————————— \$ tree -a"
    tree -a
    
    echo "———————————— \$ cat .aux/robustExternalize/*.log"
    cat .aux/robustExternalize/*.log
  '';

  installPhase = ''
    mkdir -p $out
    cp *.pdf $out/
  '';
}

The error you get seems to be:

I can't write on file `robExt-F467CCED0540E56D3C65A57486B0E418.log'.

It seems this can occur when one tries to write in a folder outside not below the current .tex file… but here I guess this is not the case.

We should maybe fill a bug upstream? But before, let me know if this version works for you.

Note also that in the meantime I pushed a version that should fixe the hang behavior (you directly see the error message).

Also, my .latexmkrc file contained only:

$pdf_mode = 1; # Default to pdf.

but removing it does not help as it seems like you add it yourself in yours.

@jdujava
Copy link
Author

jdujava commented Aug 3, 2024

Finally got around to it, and indeed, your attached nix build works for me (the line is drawn in the pdf).

It really does seem that the issue is not simply some slight difference in our confugurations, but possibly has something to do with recent version of LaTeX.

If you have time and energy, maybe it would be nice to let them know. Anyway, thanks for looking into this so thoroughly!

@tobiasBora
Copy link
Contributor

So it seems like the issue is that the folder starts with a dot. As discussed above it seems to be due to recent policy changes. Just sent an email to the texlive list. I'll close since it is a tex bug unrelated to this library.

@jdujava
Copy link
Author

jdujava commented Aug 4, 2024

You can leave it closed, but don't think it has something to do with folder starting with a dot. Trying for example aux (without dot) results in the same issue.

@tobiasBora
Copy link
Contributor

Oh really? I can't test these days, then I'll reopen until we clarify

@tobiasBora tobiasBora reopened this Aug 5, 2024
@FrankMittelbach
Copy link

So it seems like the issue is that the folder starts with a dot. As discussed above it seems to be due to recent policy changes. Just sent an email to the texlive list. I'll close since it is a tex bug unrelated to this library.

is that a folder below your current working directory or outside in the file system? Because that also can be restricted by the TeX system, e.g., default in TeX Live is

% Do we allow TeX \input or \openin (openin_any), or \openout
% (openout_any) on filenames starting with `.' (e.g., .rhosts) or
% outside the current tree (e.g., /etc/passwd)?
% a (any)        : any file can be opened.
% r (restricted) : disallow opening dot files
% p (paranoid)   : as `r' and disallow going to parent directories, and
%                  restrict absolute paths to be under $TEXMFOUTPUT.
openin_any = a
openout_any = p

@jdujava
Copy link
Author

jdujava commented Aug 6, 2024

It is below the current working directory. The aux_dir is specified in .latexmkrc, as described in #46 (comment). It doesn't matter whether it starts with a dot or not, I can reproduce the issue for TeX Live 2024 on Arch Linux, but above nix build with TeX Live 2023 works alright.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants