diff options
Diffstat (limited to 'macros/latex/contrib/macrolist/macrolist.dtx')
-rw-r--r-- | macros/latex/contrib/macrolist/macrolist.dtx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/macros/latex/contrib/macrolist/macrolist.dtx b/macros/latex/contrib/macrolist/macrolist.dtx index 7a564fc448..3ccbc85edc 100644 --- a/macros/latex/contrib/macrolist/macrolist.dtx +++ b/macros/latex/contrib/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/23 v1.1.1 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. @@ -178,10 +186,11 @@ % \fi % % \DescribeMacro{\listforeach} +% \changes{v1.1.1}{2021/07/23}{Fix foreach doc by removing incorrect begin} % % To write a for each loop, write % \begin{verbatim} -%\begin{listforeach}{listname}{\element}[begin][end]{action} +%\listforeach{listname}{\element}[begin][end]{action} % \end{verbatim} % % |