texlive[41652] Master/texmf-dist: readarray (7jul16)

commits+karl at tug.org commits+karl at tug.org
Thu Jul 7 23:42:13 CEST 2016


Revision: 41652
          http://tug.org/svn/texlive?view=revision&revision=41652
Author:   karl
Date:     2016-07-07 23:42:13 +0200 (Thu, 07 Jul 2016)
Log Message:
-----------
readarray (7jul16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/readarray/readarray.pdf
    trunk/Master/texmf-dist/doc/latex/readarray/readarray.tex
    trunk/Master/texmf-dist/tex/latex/readarray/readarray.sty

Modified: trunk/Master/texmf-dist/doc/latex/readarray/readarray.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/readarray/readarray.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/readarray/readarray.tex	2016-07-07 21:42:00 UTC (rev 41651)
+++ trunk/Master/texmf-dist/doc/latex/readarray/readarray.tex	2016-07-07 21:42:13 UTC (rev 41652)
@@ -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 @@
 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}

Modified: trunk/Master/texmf-dist/tex/latex/readarray/readarray.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/readarray/readarray.sty	2016-07-07 21:42:00 UTC (rev 41651)
+++ trunk/Master/texmf-dist/tex/latex/readarray/readarray.sty	2016-07-07 21:42:13 UTC (rev 41652)
@@ -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 @@
 %       -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,6 +161,8 @@
   }%
 }
 %
+\newread\file%
+%
 \newcommand\readdef[2]{%
 \def\first at row{T}%
 \def\first at plane{T}%
@@ -165,7 +169,6 @@
 \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%



More information about the tex-live-commits mailing list