diff options
author | Karl Berry <karl@freefriends.org> | 2020-08-24 20:55:42 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-08-24 20:55:42 +0000 |
commit | 82e2a3901929fe371b47e7243f3c749e9df3d236 (patch) | |
tree | 277359aed3f246e3f918454eb85870bb9e64ffed /Master/texmf-dist/tex/latex/etoolbox | |
parent | 6a10b4335e0035a4466860173ced955e14b514d4 (diff) |
etoolbox (24aug20)
git-svn-id: svn://tug.org/texlive/trunk@56173 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/etoolbox')
-rw-r--r-- | Master/texmf-dist/tex/latex/etoolbox/etoolbox.def | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty | 43 |
2 files changed, 42 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def index fb9dfc0ac3f..ad4ac6df7e1 100644 --- a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def +++ b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def @@ -1,5 +1,5 @@ \ProvidesFile{etoolbox.def} - [2020/07/15 v2.5i etoolbox debug messages (JAW)] + [2020/08/24 v2.5j etoolbox debug messages (JAW)] \begingroup \makeatletter diff --git a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty index 43e00958b5d..39b4a791b03 100644 --- a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty +++ b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{etoolbox} - [2020/07/15 v2.5i e-TeX tools for LaTeX (JAW)] + [2020/08/24 v2.5j e-TeX tools for LaTeX (JAW)] \begingroup \@ifundefined{eTeXversion} @@ -878,6 +878,45 @@ \csname#2\endcsname} {\csundef{#1}}} +\ifdef\NewCommandCopy + {% + \def\etb@carsquare#1#2#3\@nil{#1#2} + % + % {<cstoken>}{<true>}{<false>} + % + \newrobustcmd*{\etb@if@robustcmd}[1]{% + \begingroup + \escapechar=`\\ + \edef\etb@tempa{% + \endgroup + \def\noexpand\etb@tempa{\noexpand\@testopt + \expandafter\noexpand\csname\string#1\endcsname}% + \def\noexpand\etb@tempb{\unexpanded\expandafter\expandafter\expandafter + {\expandafter\etb@carsquare#1{}{}\@nil}}% + }\etb@tempa + \ifx\etb@tempa\etb@tempb + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi} + % + % {<cstoken>}{<cstoken>} + % + \newrobustcmd*{\etb@copy@robustcmd}[2]{% + \begingroup + \escapechar=`\\ + \edef\etb@tempa{% + \endgroup + \protected\def\noexpand#1{\noexpand\@testopt + \expandafter\noexpand\csname\string#1\endcsname + \unexpanded\expandafter\expandafter\expandafter + {\expandafter\@gobbletwo#2}}% + \let\expandafter\noexpand\csname\string#1\endcsname + \expandafter\noexpand\csname\string#2\endcsname + }\etb@tempa} + \g@addto@macro\@declarecommandcopylisthook + {{\etb@if@robustcmd\etb@copy@robustcmd}} + }{} % {<csname>} \newcommand*{\csuse}[1]{% @@ -1699,7 +1738,7 @@ \ifdef\AddToHook {% - \newrobustcmd*{\AtEndPreamble}{\AddToHook{env/document/begin}}% + \newrobustcmd*{\AtEndPreamble}{\AddToHook{begindocument/before}}% \let\AfterPreamble\AtBeginDocument \newrobustcmd*{\AfterEndPreamble}{\AddToHook{begindocument/end}}% \newrobustcmd*{\AfterEndDocument}{\AddToHook{enddocument/end}}% |