texlive[60028] Master/texmf-dist: macrolist (23jul21)
commits+karl at tug.org
commits+karl at tug.org
Fri Jul 23 22:09:04 CEST 2021
Revision: 60028
http://tug.org/svn/texlive?view=revision&revision=60028
Author: karl
Date: 2021-07-23 22:09:03 +0200 (Fri, 23 Jul 2021)
Log Message:
-----------
macrolist (23jul21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/macrolist/README.md
trunk/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf
trunk/Master/texmf-dist/source/latex/macrolist/macrolist.dtx
trunk/Master/texmf-dist/tex/latex/macrolist/macrolist.sty
Modified: trunk/Master/texmf-dist/doc/latex/macrolist/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/macrolist/README.md 2021-07-23 20:08:50 UTC (rev 60027)
+++ trunk/Master/texmf-dist/doc/latex/macrolist/README.md 2021-07-23 20:09:03 UTC (rev 60028)
@@ -1,4 +1,4 @@
-# The LaTeX package macrolist - version 1.0.2 (2021/07/17)
+# The LaTeX package macrolist - version 1.1.0 (2021/07/22)
> Copyright (C) 2021 Dennis Chen <proofprogram at gmail.com>
>
Modified: trunk/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/macrolist/macrolist.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/macrolist/macrolist.dtx 2021-07-23 20:08:50 UTC (rev 60027)
+++ trunk/Master/texmf-dist/source/latex/macrolist/macrolist.dtx 2021-07-23 20:09:03 UTC (rev 60028)
@@ -16,7 +16,7 @@
%<*package>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{macrolist}[2021/07/16 v1.0.1 Create lists of macros and perform operations on them]
+\ProvidesPackage{macrolist}[2021/07/22 v1.1.0 Create lists of macros and perform operations on them]
\RequirePackage{pgffor}
%</package>
@@ -75,6 +75,14 @@
}
% \fi
%
+% \changes{v1.1.0}{2021/07/22}{Add listexists}
+% \DescribeMacro{\listexists}
+% Writing |\listexists{listname}{true}{false}| will execute \textsf{true} if \textsf{listname} exists and \textsf{false} otherwise.
+%
+% \iffalse
+\newcommand{\listexists}[3]{\ifcsname c at macrolist@list@#1\endcsname#2\else#3\fi}
+% \fi
+%
% \DescribeMacro{\listelement}
%
% To execute the \textsf{i}th element of \textsf{listname}, write |\listelement{listname}{i}|. Note that \textit{lists are 1-indexed}, meaning the first element is numbered 1, the second element numbered 2, and so on.
Modified: trunk/Master/texmf-dist/tex/latex/macrolist/macrolist.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/macrolist/macrolist.sty 2021-07-23 20:08:50 UTC (rev 60027)
+++ trunk/Master/texmf-dist/tex/latex/macrolist/macrolist.sty 2021-07-23 20:09:03 UTC (rev 60028)
@@ -15,7 +15,7 @@
%% version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{macrolist}[2021/07/16 v1.0.1 Create lists of macros and perform operations on them]
+\ProvidesPackage{macrolist}[2021/07/22 v1.1.0 Create lists of macros and perform operations on them]
\RequirePackage{pgffor}
@@ -27,6 +27,7 @@
\setcounter{macrolist at list@#1}{0}
\fi
}
+\newcommand{\listexists}[3]{\ifcsname c at macrolist@list@#1\endcsname#2\else#3\fi}
\newcommand{\listelement}[2]{%
\macrolist at inbounds{#1}{#2}%
\csname macrolist at list@#1\the\numexpr #2\relax\endcsname%
More information about the tex-live-commits
mailing list.