summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/readarray
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/readarray')
-rw-r--r--Master/texmf-dist/tex/latex/readarray/readarray.sty7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/readarray/readarray.sty b/Master/texmf-dist/tex/latex/readarray/readarray.sty
index 941e4b41851..17136a5893d 100644
--- a/Master/texmf-dist/tex/latex/readarray/readarray.sty
+++ b/Master/texmf-dist/tex/latex/readarray/readarray.sty
@@ -1,5 +1,5 @@
\ProvidesPackage{readarray}
-[2013/05/09 v1.2
+[2016/07/07 v1.3
Routines for inputting array data and recalling it on an
element-by-element basis. Currently supports 2-D and 3-D array]
%
@@ -22,6 +22,8 @@ element-by-element basis. Currently supports 2-D and 3-D array]
% -Added \arrayij and \arrayijk, which can be put into \edef
% -Used \romannumeral in preference to \roman{}, when possible,
% to avoid unnecessary use of counters.
+% v1.3 -Moved \newread outside of \readdef, so as not to exhaust the
+% 16 allotted file streams (Thanks to Ken Kubota for the tip).
\usepackage{ifthen}
\usepackage{ifnextok}
%
@@ -159,13 +161,14 @@ element-by-element basis. Currently supports 2-D and 3-D array]
}%
}
%
+\newread\file%
+%
\newcommand\readdef[2]{%
\def\first@row{T}%
\def\first@plane{T}%
\catcode\endlinechar=10\relax%
\def#2{}%
\setcounter{@record}{0}%
-\newread\file%
\openin\file=#1%
\loop\unless\ifeof\file%
\read\file to\fileline % Reads a line of the file into \fileline%