summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/macrolist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-23 20:09:03 +0000
committerKarl Berry <karl@freefriends.org>2021-07-23 20:09:03 +0000
commit6b49584f490f33f265a297d5fe95dc73d8201292 (patch)
tree8eb33d0d31a5bbe28274fc2ceb751b9e130b0ca8 /Master/texmf-dist/source/latex/macrolist
parent17435dbc87ef4c15ed383dffdb4b2ba093bb0fa8 (diff)
macrolist (23jul21)
git-svn-id: svn://tug.org/texlive/trunk@60028 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/macrolist')
-rw-r--r--Master/texmf-dist/source/latex/macrolist/macrolist.dtx10
1 files changed, 9 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/macrolist/macrolist.dtx b/Master/texmf-dist/source/latex/macrolist/macrolist.dtx
index 7a564fc4485..59fc82d4e3e 100644
--- a/Master/texmf-dist/source/latex/macrolist/macrolist.dtx
+++ b/Master/texmf-dist/source/latex/macrolist/macrolist.dtx
@@ -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@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.