summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-10-08 20:40:55 +0000
committerKarl Berry <karl@freefriends.org>2015-10-08 20:40:55 +0000
commit46161b428da1154ea784a48b9db0e5fb962a235c (patch)
treefbe8cefafe3eae08dc5f5d90e39388e829e86a54
parent2e95fbc2467541c9c44c6d25c9d3b5fe4d0f5538 (diff)
dynamicnumber (8oct15)
git-svn-id: svn://tug.org/texlive/trunk@38590 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdfbin157486 -> 158110 bytes
-rw-r--r--Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx20
-rw-r--r--Master/texmf-dist/tex/latex/dynamicnumber/dynamicnumber.sty12
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
index 1cc09e02bce..b84719cca69 100644
--- a/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf
+++ b/Master/texmf-dist/doc/latex/dynamicnumber/dynamicnumber.pdf
Binary files differ
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}%
}{}%
}