[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks2: add \reenable at package@load as rhe counterpart to \disable at package@load (c058f079)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Aug 17 08:47:59 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks2
Link       : https://github.com/latex3/latex2e/commit/c058f0792a5050dde07ab5906a22e9b355c2ed47

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

commit c058f0792a5050dde07ab5906a22e9b355c2ed47
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Aug 17 08:47:59 2020 +0200

    add \reenable at package@load as rhe counterpart to \disable at package@load


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

c058f0792a5050dde07ab5906a22e9b355c2ed47
 base/ltfilehook.dtx | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 8375a9a6..d6dca91f 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -17,8 +17,8 @@
 % for those people who are interested or want to report an issue.
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v0.9a}
-\providecommand\ltfilehookdate{2020/07/19}
+\providecommand\ltfilehookversion{v0.9b}
+\providecommand\ltfilehookdate{2020/08/17}
 %    \end{macrocode}
 %
 %<*driver>
@@ -996,6 +996,15 @@
 % \end{macro}
 % \end{macro}
 %
+% \begin{macro}{\reenable at package@load}
+%   \cs{reenable at package@load} undefines
+%   \cs[no-index]{@pkg-reenable@\meta{package}} to reallow loading a package.
+%    \begin{macrocode}
+\def\reenable at package@load#1{%
+  \global\let{@pkg-disable@#1.\@pkgextension}\@undefined}
+%    \end{macrocode}
+% \end{macro}
+%
 % \begin{macro}{\load at onefilewithoptions,\load at onefile@withoptions}
 % \begin{macro}{\@missing at onefilewithoptions}
 %   This macro is used when loading packages or classes.





More information about the latex3-commits mailing list.