summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pgf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pgf')
-rw-r--r--Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex7
1 files changed, 7 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex b/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex
index d609371cd04..3d2e48fa579 100644
--- a/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex
+++ b/Master/texmf-dist/tex/latex/pgf/frontendlayer/libraries/tikzlibraryexternal.code.tex
@@ -99,6 +99,12 @@
}%
}%
+% FIXME: See also https://github.com/latex3/latex2e/issues/441
+% for compatibility with the new LaTeX hook management redefine \@currname to
+% force a separate scope
+\let\tikzexternal@currname\@currname
+\def\@currname{tikzlibraryexternal}
+
\AtBeginDocument{%
\pgfutil@ifundefined{tikzexternalrealjob}{%
\global\let\tikzexternalrealjob=\jobname
@@ -106,3 +112,4 @@
\tikzexternal@handle@landscape
}%
+\let\@currname\tikzexternal@currname