diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/macrolist/README.md | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/macrolist/macrolist.pdf | bin | 183759 -> 183816 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/macrolist/macrolist.dtx | 24 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/macrolist/macrolist.sty | 14 |
4 files changed, 23 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/macrolist/README.md b/Master/texmf-dist/doc/latex/macrolist/README.md index ee730939395..4386d5896f9 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.0 (2021/07/12) +# The LaTeX package macrolist - version 1.0.1 (2021/07/16) > 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 Binary files differindex c3e16e26347..fbeaa30a7e7 100644 --- a/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf +++ b/Master/texmf-dist/doc/latex/macrolist/macrolist.pdf diff --git a/Master/texmf-dist/source/latex/macrolist/macrolist.dtx b/Master/texmf-dist/source/latex/macrolist/macrolist.dtx index 9c0ee6eb62b..beaadec98dc 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/09 v1.0.0 Create lists of macros and perform operations on them] +\ProvidesPackage{macrolist}[2021/07/16 v1.0.1 Create lists of macros and perform operations on them] \RequirePackage{pgffor} %</package> @@ -33,13 +33,17 @@ \end{document} %</driver> % \fi -% \changes{v1.0.0}{2021/07/01}{Initial version} +% \changes{v1.0.1}{2021/07/16}{Make a couple of defs and lets global to prevent scoping issues} +% \changes{v1.0.1}{2021/07/16}{Add ``scope is always global'' to documentation} +% \changes{v1.0.1}{2021/07/16}{Fix date in initial version changes entry} +% \changes{v1.0.1}{2021/07/16}{Fix v. appearing in front of date in document title} +% \changes{v1.0.0}{2021/07/12}{Initial version} % % \GetFileInfo{macrolist.sty} % % \title{\textsf{macrolist} -- Create lists of macros and manipulate them} % \author{Dennis Chen \\ proofprogram@gmail.com} -% \date{\fileversion, v. \filedate\thanks{\url{https://github/com/chennisden/macrolist}}} +% \date{\fileversion, \filedate\thanks{\url{https://github/com/chennisden/macrolist}}} % % \maketitle % @@ -49,6 +53,8 @@ % % \section{Usage} % +% The scope of lists is always global. This seems to provide the most +% % \DescribeMacro{\newlist} % To create a list, pass in |\newlist{listname}| to create a list with the name \textsf{listname}. % @@ -93,16 +99,16 @@ \stepcounter{macrolist@list@\macrolist@currlist} \if\relax\detokenize{#1}\relax - \expandafter\def\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} + \expandafter\gdef\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} \else \expandafter\ifnum\csname themacrolist@list@\macrolist@currlist\endcsname=#1 - \expandafter\def\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} + \expandafter\gdef\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} \else \macrolist@inbounds{\macrolist@currlist}{#1} \foreach \macrolist@index in {\listsize{\macrolist@currlist}, ...,\the\numexpr #1+1\relax} { \global\expandafter\let\csname macrolist@list@\macrolist@currlist\macrolist@index\expandafter\endcsname\csname macrolist@list@\macrolist@currlist\the\numexpr\macrolist@index-1\relax\endcsname } - \expandafter\def\csname macrolist@list@\macrolist@currlist#1\endcsname{#2} + \expandafter\gdef\csname macrolist@list@\macrolist@currlist#1\endcsname{#2} \fi \fi } @@ -123,7 +129,7 @@ } \fi - \expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax + \global\expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax \addtocounter{macrolist@list@#1}{-1} } % \fi @@ -135,7 +141,7 @@ % \iffalse \newcommand{\listremovelast}[1]{ \macrolist@exists{#1} - \expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax + \global\expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax \addtocounter{macrolist@list@#1}{-1} } % \fi @@ -149,7 +155,7 @@ \macrolist@inbounds{#1}{#2} \foreach \macrolist@index in {1, ..., \listsize{#1}} { - \expandafter\let\csname \macrolist@list@#1\macrolist@index\endcsname\relax + \global\expandafter\let\csname \macrolist@list@#1\macrolist@index\endcsname\relax } \setcounter{macrolist@list@#1}{0} diff --git a/Master/texmf-dist/tex/latex/macrolist/macrolist.sty b/Master/texmf-dist/tex/latex/macrolist/macrolist.sty index 13f791ddd2c..5d15abe6634 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/09 v1.0.0 Create lists of macros and perform operations on them] +\ProvidesPackage{macrolist}[2021/07/16 v1.0.1 Create lists of macros and perform operations on them] \RequirePackage{pgffor} @@ -41,16 +41,16 @@ \stepcounter{macrolist@list@\macrolist@currlist} \if\relax\detokenize{#1}\relax - \expandafter\def\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} + \expandafter\gdef\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} \else \expandafter\ifnum\csname themacrolist@list@\macrolist@currlist\endcsname=#1 - \expandafter\def\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} + \expandafter\gdef\csname macrolist@list@\macrolist@currlist\listsize{\macrolist@currlist}\endcsname{#2} \else \macrolist@inbounds{\macrolist@currlist}{#1} \foreach \macrolist@index in {\listsize{\macrolist@currlist}, ...,\the\numexpr #1+1\relax} { \global\expandafter\let\csname macrolist@list@\macrolist@currlist\macrolist@index\expandafter\endcsname\csname macrolist@list@\macrolist@currlist\the\numexpr\macrolist@index-1\relax\endcsname } - \expandafter\def\csname macrolist@list@\macrolist@currlist#1\endcsname{#2} + \expandafter\gdef\csname macrolist@list@\macrolist@currlist#1\endcsname{#2} \fi \fi } @@ -64,19 +64,19 @@ } \fi - \expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax + \global\expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax \addtocounter{macrolist@list@#1}{-1} } \newcommand{\listremovelast}[1]{ \macrolist@exists{#1} - \expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax + \global\expandafter\let\csname macrolist@list@#1\listsize{#1}\endcsname\relax \addtocounter{macrolist@list@#1}{-1} } \newcommand{\listclear}[2]{ \macrolist@inbounds{#1}{#2} \foreach \macrolist@index in {1, ..., \listsize{#1}} { - \expandafter\let\csname \macrolist@list@#1\macrolist@index\endcsname\relax + \global\expandafter\let\csname \macrolist@list@#1\macrolist@index\endcsname\relax } \setcounter{macrolist@list@#1}{0} |