summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/readarray/readarray.pdfbin230149 -> 230991 bytes
-rw-r--r--Master/texmf-dist/doc/latex/readarray/readarray.tex8
-rw-r--r--Master/texmf-dist/tex/latex/readarray/readarray.sty7
3 files changed, 12 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/readarray/readarray.pdf b/Master/texmf-dist/doc/latex/readarray/readarray.pdf
index 3de54fcfaa8..387b27c6d51 100644
--- a/Master/texmf-dist/doc/latex/readarray/readarray.pdf
+++ b/Master/texmf-dist/doc/latex/readarray/readarray.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/readarray/readarray.tex b/Master/texmf-dist/doc/latex/readarray/readarray.tex
index 85081ab4359..25a0bace173 100644
--- a/Master/texmf-dist/doc/latex/readarray/readarray.tex
+++ b/Master/texmf-dist/doc/latex/readarray/readarray.tex
@@ -1,5 +1,5 @@
\documentclass{article}
-\def\version{1.2}
+\def\version{1.3}
%% Copyright 2013 Steven B. Segletes
%
% This work may be distributed and/or modified under the
@@ -20,6 +20,8 @@
% -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).
\parskip 1em
\parindent 0em
@@ -486,6 +488,10 @@ helping the author rewrite the \vb|\getargs| command, originally found
in the \textsf{stringstrings} package. To distinguish the two versions,
and in deference to him, it is herein named \vb|\getargsC|.
+The author is likewise grateful to Ken Kubota, who suggested moving the
+ \vb|\newread| outside of \vb|\readdef|, so as not to prematurely
+ exhaust the 16 available file streams.
+
\clearpage
\section{Code Listing}
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%