summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/macrolist/README.md2
-rw-r--r--Master/texmf-dist/doc/latex/macrolist/macrolist.pdfbin188569 -> 184101 bytes
-rw-r--r--Master/texmf-dist/source/latex/macrolist/macrolist.dtx10
-rw-r--r--Master/texmf-dist/tex/latex/macrolist/macrolist.sty3
4 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/macrolist/README.md b/Master/texmf-dist/doc/latex/macrolist/README.md
index 61ac3d679d7..e52c3742772 100644
--- a/Master/texmf-dist/doc/latex/macrolist/README.md
+++ b/Master/texmf-dist/doc/latex/macrolist/README.md
@@ -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@gmail.com>
>
diff --git a/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf b/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf
index 1f5be69f8bf..f487ba528d4 100644
--- a/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf
+++ b/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf
Binary files differ
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.
diff --git a/Master/texmf-dist/tex/latex/macrolist/macrolist.sty b/Master/texmf-dist/tex/latex/macrolist/macrolist.sty
index 03cf5a54166..75d07fba281 100644
--- a/Master/texmf-dist/tex/latex/macrolist/macrolist.sty
+++ b/Master/texmf-dist/tex/latex/macrolist/macrolist.sty
@@ -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@list@#1}{0}
\fi
}
+\newcommand{\listexists}[3]{\ifcsname c@macrolist@list@#1\endcsname#2\else#3\fi}
\newcommand{\listelement}[2]{%
\macrolist@inbounds{#1}{#2}%
\csname macrolist@list@#1\the\numexpr #2\relax\endcsname%