From 37778869d20a42439b123bb0c553953f716886b1 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Sun, 6 Oct 2019 03:01:15 +0000
Subject: CTAN sync 201910060301

---
 macros/latex/contrib/nicematrix/nicematrix.dtx | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

(limited to 'macros/latex/contrib/nicematrix/nicematrix.dtx')

diff --git a/macros/latex/contrib/nicematrix/nicematrix.dtx b/macros/latex/contrib/nicematrix/nicematrix.dtx
index 44a38c9a0b..831a7fca85 100644
--- a/macros/latex/contrib/nicematrix/nicematrix.dtx
+++ b/macros/latex/contrib/nicematrix/nicematrix.dtx
@@ -15,8 +15,8 @@
 %
 % \fi
 % \iffalse
-\def\myfileversion{3.3}
-\def\myfiledate{2019/10/01}
+\def\myfileversion{3.4}
+\def\myfiledate{2019/10/05}
 %
 %
 %<*batchfile>
@@ -3721,7 +3721,11 @@ c & c & b & a & e
 % options |overlay| and |remember picture|, there would be errors).
 %    \begin{macrocode}
     \cs_if_exist:NT \tikz@library@external@loaded
-      { \tikzset { external / export = false } }
+      {
+        \tikzset { external / export = false }
+        \cs_if_exist:NT \ifstandalone
+          { \tikzset { external / optimize = false } }
+      }
 %    \end{macrocode}
 %
 % We increment the counter |\g_@@_env_int| which counts the environments
@@ -6891,6 +6895,16 @@ c & c & b & a & e
 %
 % The previous version of \pkg{nicematrix} was incompatible with a recent
 % version of \pkg{expl3} (released 2019/09/30). This version is compatible.
+%
+%
+% \subsection*{Changes between version 3.3 and 3.4}
+%
+% Following a discussion on TeX StackExchange\footnote{cf.
+% |tex.stackexchange.com/questions/510841/nicematrix-and-tikz-external-optimize|}, 
+% optimization of Tikz externalization is disabled in the environments of
+% \pkg{nicematrix} when the class \cls{standalone} or the package \pkg{standalone} is used.
+% 
+% 
 % 
 % \PrintIndex
 % 
-- 
cgit v1.2.3

