texlive[46550] Master/texmf-dist: etoolbox (5feb18)
commits+karl at tug.org
commits+karl at tug.org
Mon Feb 5 22:55:52 CET 2018
Revision: 46550
http://tug.org/svn/texlive?view=revision&revision=46550
Author: karl
Date: 2018-02-05 22:55:52 +0100 (Mon, 05 Feb 2018)
Log Message:
-----------
etoolbox (5feb18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/etoolbox/etoolbox.pdf
trunk/Master/texmf-dist/doc/latex/etoolbox/etoolbox.tex
trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def
trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
Modified: trunk/Master/texmf-dist/doc/latex/etoolbox/etoolbox.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/etoolbox/etoolbox.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/etoolbox/etoolbox.tex 2018-02-05 21:55:39 UTC (rev 46549)
+++ trunk/Master/texmf-dist/doc/latex/etoolbox/etoolbox.tex 2018-02-05 21:55:52 UTC (rev 46550)
@@ -12,8 +12,8 @@
url={http://www.ctan.org/pkg/etoolbox/},
author={Philipp Lehman, Joseph Wright},
email={joseph.wright at morningstar2.co.uk},
- revision={v2.5a},
- date={2018/02/03}}
+ revision={v2.5b},
+ date={2018/02/04}}
\hypersetup{%
pdftitle={The etoolbox Package},
@@ -239,7 +239,7 @@
Clears a \prm{command} such that \etex's \cmd{ifdefined} and \cmd{ifcsname} tests will consider it as undefined. This command is robust and may be prefixed with \cs{global}.
-\cmditem{undef}<command>
+\cmditem{gundef}<command>
Similar to \cmd{undef} but acts globally.
@@ -1297,6 +1297,11 @@
\begin{changelog}
+\begin{release}{2.5b}{2018-02-04}
+\item Preserve braces in some internal steps
+\item Internal performance improvements in list processors
+\end{release}
+
\begin{release}{2.5a}{2018-02-03}
\item Internal performance improvements in list processors
\end{release}
Modified: trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def 2018-02-05 21:55:39 UTC (rev 46549)
+++ trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def 2018-02-05 21:55:52 UTC (rev 46550)
@@ -1,5 +1,5 @@
\ProvidesFile{etoolbox.def}
- [2018/02/03 v2.5a etoolbox debug messages (JAW)]
+ [2018/02/04 v2.5b etoolbox debug messages (JAW)]
\begingroup
\makeatletter
Modified: trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty 2018-02-05 21:55:39 UTC (rev 46549)
+++ trunk/Master/texmf-dist/tex/latex/etoolbox/etoolbox.sty 2018-02-05 21:55:52 UTC (rev 46550)
@@ -12,7 +12,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{etoolbox}
- [2018/02/03 v2.5a e-TeX tools for LaTeX (JAW)]
+ [2018/02/04 v2.5b e-TeX tools for LaTeX (JAW)]
\begingroup
\@ifundefined{eTeXversion}
@@ -1502,19 +1502,20 @@
\long\def\noexpand#1####1{%
\expandafter\noexpand
\csname etb at lst@\expandafter\@gobble\string#1\endcsname
- \space####1\noexpand#2\noexpand\etb at lst@q at end\noexpand#2&}%
+ \noexpand\@nil####1\noexpand#2\noexpand\etb at lst@q at end\noexpand#2&}%
\long\csdef{etb at lst@\expandafter\@gobble\string#1}%
- ####1\noexpand#2####2\noexpand#2{%
- \noexpand\etb at listitem\noexpand\do{####1}%
- \noexpand\ifx\noexpand\etb at lst@q at end####2\noexpand\@empty
+ ####1\noexpand#2{%
+ \noexpand\expandafter\noexpand\ifx\noexpand\expandafter
+ \noexpand\etb at lst@q at end\noexpand\@gobble####1\noexpand\@empty
\noexpand\expandafter\noexpand\@firstoftwo
\noexpand\else
\noexpand\expandafter\noexpand\@secondoftwo
\noexpand\fi
{\noexpand\listbreak}
- {\expandafter\noexpand
+ {\noexpand\etb at listitem\noexpand\do{####1}%
+ \expandafter\noexpand
\csname etb at lst@\expandafter\@gobble\string#1\endcsname
- \space####2\noexpand#2}}}%
+ \noexpand\@nil}}}%
\@tempa}
\def\etb at lst@q at end{\etb at lst@q at end}
@@ -1525,22 +1526,27 @@
\long\def\noexpand#1####1####2{%
\expandafter\noexpand
\csname etb at lst@\expandafter\@gobble\string#1\endcsname
- {####1}\space####2\noexpand#2&}%
- \long\csdef{etb at lst@\expandafter\@gobble\string#1}####1####2\noexpand#2####3&{%
- \noexpand\etb at listitem{####1}{####2}%
- \noexpand\ifblank{####3}
+ {####1}\noexpand\@nil####2\noexpand#2\noexpand\etb at lst@q at end\noexpand#2&}%
+ \long\csdef{etb at lst@\expandafter\@gobble\string#1}####1####2\noexpand#2{%
+ \noexpand\expandafter\noexpand\ifx\noexpand\expandafter
+ \noexpand\etb at lst@q at end\noexpand\@gobble####2\noexpand\@empty
+ \noexpand\expandafter\noexpand\@firstoftwo
+ \noexpand\else
+ \noexpand\expandafter\noexpand\@secondoftwo
+ \noexpand\fi
{\noexpand\listbreak}
- {\expandafter\noexpand
+ {\noexpand\etb at listitem{####1}{####2}%
+ \expandafter\noexpand
\csname etb at lst@\expandafter\@gobble\string#1\endcsname
- {####1}\space####3}&}}%
+ {####1}\noexpand\@nil}}}%
\@tempa}
\long\def\etb at listitem#1#2{%
- \ifblank{#2}
+ \expandafter\ifblank\expandafter{\@gobble#2}
{}
{\expandafter\etb at listitem@i
- \expandafter{\@firstofone#2}{#1}}}
-\long\def\etb at listitem@i#1#2{#2{#1}}
+ \expandafter{\@gobble#2}{#1}}}
+\long\def\etb at listitem@i#1#2{\expandafter#2\expandafter{\@firstofone#1}}
\newcommand*{\listbreak}{}
\long\def\listbreak#1&{}
@@ -1632,16 +1638,19 @@
\newcommand*{\forlistloop}[2]{%
\expandafter\etb at forlistloop\expandafter{#2}{#1}}
-\long\def\etb at forlistloop#1#2{\etb at forlistloop@i{#2}#1|&}
+\long\def\etb at forlistloop#1#2{\etb at forlistloop@i{#2}#1|\etb at lst@q at end|&}
-\long\def\etb at forlistloop@i#1#2|#3&{%
- \ifblank{#2}
- {}
- {#1{#2}}%
- \ifblank{#3}
+\long\def\etb at forlistloop@i#1#2|{%
+ \ifx\etb at lst@q at end#2\@empty
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi
{\listbreak}
- {\etb at forlistloop@i{#1}#3}%
- &}
+ {\ifblank{#2}
+ {}
+ {#1{#2}}%
+ \etb at forlistloop@i{#1}}}
% {<handler>}{<listcsname>} => <handler>{<item1>}<handler>{<item2>}...
More information about the tex-live-commits
mailing list