[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks: oops \AtBeginDocument now needs ordering in a case like this ... (cd328332)

Frank Mittelbach frank.mittelbach at latex-project.org
Wed Jul 8 21:47:36 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks
Link       : https://github.com/latex3/latex2e/commit/cd328332c47ba91d8e34860130f3b9b577374c0e

>---------------------------------------------------------------

commit cd328332c47ba91d8e34860130f3b9b577374c0e
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Wed Jul 8 21:47:36 2020 +0200

    oops \AtBeginDocument now needs ordering in a case like this ...


>---------------------------------------------------------------

cd328332c47ba91d8e34860130f3b9b577374c0e
 required/tools/array.dtx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/required/tools/array.dtx b/required/tools/array.dtx
index a84d4faf..8e37064e 100644
--- a/required/tools/array.dtx
+++ b/required/tools/array.dtx
@@ -731,7 +731,11 @@
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \documentclass{ltxdoc}
 
-\AtBeginDocument{\DeleteShortVerb{\|}}  % undo the default is not used
+% undo the default is not used:
+
+\IfFormatAtLeastTF {2020/10/01}
+ {\AtBeginDocument[ltxdoc]{\DeleteShortVerb{\|}} } 
+ {\AtBeginDocument{\DeleteShortVerb{\|}} } 
 
  \usepackage{array}
 
@@ -747,6 +751,7 @@
 
  %\OnlyDescription    % comment out for implementation details
  %\OldMakeindex       % use if your MakeIndex is pre-v2.9
+
 \begin{document}
    \DocInput{array.dtx}
 \end{document}





More information about the latex3-commits mailing list.