From 0b0d95d3d5c04e591911d2f6f80961eedfc79188 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 7 Jul 2016 21:42:13 +0000 Subject: readarray (7jul16) git-svn-id: svn://tug.org/texlive/trunk@41652 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/readarray/readarray.sty | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/readarray') 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% -- cgit v1.2.3