diff options
author | Karl Berry <karl@freefriends.org> | 2016-12-26 22:24:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-12-26 22:24:22 +0000 |
commit | ff140747d3358efbf08d95de581c44189cdfb2e9 (patch) | |
tree | 1c096f9e73591a2d44ebec16897e83ea694f00d8 /Master/texmf-dist/tex/latex | |
parent | 6a2618ff9e74e2551b6d705dcf4c9e79c2e6cb2e (diff) |
etoolbox (26dec16)
git-svn-id: svn://tug.org/texlive/trunk@42796 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/etoolbox/etoolbox.def | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty | 28 |
2 files changed, 27 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def index 75a01547a59..e99a704cfde 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} - [2016/12/01 v2.2b etoolbox debug messages (JAW)] + [2016/12/26 v2.3 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 da8327b8338..d2bfb6b12ad 100644 --- a/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty +++ b/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty @@ -1,5 +1,5 @@ % Copyright (c) 2007-2011 Philipp Lehman. -% (c) 2015 Joseph Wright +% (c) 2015,2016 Joseph Wright % % Permission is granted to copy, distribute and/or modify this % software under the terms of the LaTeX Project Public License @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{etoolbox} - [2016/12/01 v2.2b e-TeX tools for LaTeX (JAW)] + [2016/12/26 v2.3 e-TeX tools for LaTeX (JAW)] \begingroup \@ifundefined{eTeXversion} @@ -1570,6 +1570,30 @@ \newrobustcmd{\listcsxadd}[1]{% \expandafter\listxadd\csname#1\endcsname} +% {<listmacro>}{<string>} + +\newrobustcmd{\listdel}[2]{% + \etb@listdel{#1}{#2}\def} +\newrobustcmd{\listgdel}[2]{% + \etb@listdel{#1}{#2}\gdef} + +\protected\long\def\etb@listdel#1#2#3{% + \ifblank{#2} + {} + {\ifinlist{#2}{#1}{% + \begingroup + \def\etb@tempa##1|#2|##2&{\endgroup + \expandafter#3\expandafter#1\expandafter{\@gobble##1|##2}}% + \expandafter\etb@tempa\expandafter|#1&}{}}% +} + +% {<listcsname>}{<string>} + +\newrobustcmd{\listcsdel}[1]{% + \expandafter\listdel\csname#1\endcsname} +\newrobustcmd{\listcsgdel}[1]{% + \expandafter\listgdel\csname#1\endcsname} + % {<string>}{<listmacro>}{<true>}{<false>} \newrobustcmd{\ifinlist}[2]{% |