diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf | bin | 157486 -> 158110 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx | 20 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty | 12 |
3 files changed, 18 insertions, 14 deletions
diff --git a/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf b/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf Binary files differindex 1cc09e02bce..b84719cca69 100644 --- a/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf +++ b/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf diff --git a/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx b/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx index b6e25ff591a..0325843a7e4 100644 --- a/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx +++ b/Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx @@ -14,7 +14,7 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{dynamicnumber} -%<package> [2015/10/04 v0.1 Dynamic Number package] +%<package> [2015/10/04 v0.1.1 Dynamic Number package] % %<*driver> \documentclass{ltxdoc} @@ -48,7 +48,8 @@ % Right brace \} Tilde \~} % % -% \changes{v1.0}{<YYYY>/<MM>/<DD>}{Initial version} +% \changes{v0.1}{2015/10/04}{Initial version} +% \changes{v0.1.1}{2015/10/06}{Performance improvements (one call to newread)} % % \GetFileInfo{dynamicnumber.sty} % @@ -57,7 +58,7 @@ % \title{The \textsf{dynamicnumber} package\thanks{This document % corresponds to \textsf{dynamicnumber}~\fileversion, % dated \filedate.}} -% \author{Olivier Pieters \\ \texttt{me@olivierpieters.be}} +% \author{Olivier Pieters \\ \texttt{me (at) olivierpieters (dot) be}} % % \maketitle % @@ -108,6 +109,10 @@ \RequirePackage{xparse} % \end{macrocode} % +% Create input stream +% \begin{macrocode} +\newread\dninstream +% \end{macrocode} % \begin{macro}{\@IfNoValueOrEmptyTF} % Tests if a parameter is empty using expl3. % Performs a double check to make sure it really is empty. @@ -174,13 +179,12 @@ % \begin{macrocode} \DeclareDocumentCommand{\dnload}{m}{% \IfFileExists{#1.dnlist}{% - \newread\ccinstream - \immediate\openin\ccinstream=#1.dnlist - \@whilesw\unless\ifeof\ccinstream\fi{% - \immediate\read\ccinstream to \@auxcommand + \immediate\openin\dninstream=#1.dnlist + \@whilesw\unless\ifeof\dninstream\fi{% + \immediate\read\dninstream to \@auxcommand \@auxcommand }% - \immediate\closein\ccinstream% + \immediate\closein\dninstream% \dnsetcurrent{#1}% }{}% } diff --git a/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty b/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty index aa774d939fc..dd16e05ea37 100644 --- a/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty +++ b/Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty @@ -18,10 +18,11 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{dynamicnumber} - [2015/10/04 v0.1 Dynamic Number package] + [2015/10/04 v0.1.1 Dynamic Number package] %% \DescribeMacro{\dncurrent} \RequirePackage{pgfkeys} \RequirePackage{xparse} +\newread\dninstream \ExplSyntaxOn \DeclareExpandableDocumentCommand{\@IfNoValueOrEmptyTF}{mmm} { @@ -49,13 +50,12 @@ } \DeclareDocumentCommand{\dnload}{m}{% \IfFileExists{#1.dnlist}{% - \newread\ccinstream - \immediate\openin\ccinstream=#1.dnlist - \@whilesw\unless\ifeof\ccinstream\fi{% - \immediate\read\ccinstream to \@auxcommand + \immediate\openin\dninstream=#1.dnlist + \@whilesw\unless\ifeof\dninstream\fi{% + \immediate\read\dninstream to \@auxcommand \@auxcommand }% - \immediate\closein\ccinstream% + \immediate\closein\dninstream% \dnsetcurrent{#1}% }{}% } |