summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
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 /Master/texmf-dist/source
parent2e95fbc2467541c9c44c6d25c9d3b5fe4d0f5538 (diff)
dynamicnumber (8oct15)
git-svn-id: svn://tug.org/texlive/trunk@38590 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/dynamicnumber/dynamicnumber.dtx20
1 files changed, 12 insertions, 8 deletions
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}%
}{}%
}