diff options
author | Karl Berry <karl@freefriends.org> | 2016-07-07 21:42:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-07-07 21:42:13 +0000 |
commit | 0b0d95d3d5c04e591911d2f6f80961eedfc79188 (patch) | |
tree | dfec9ac952299068f3195b374aa05f1bdfc90ebf /Master/texmf-dist/tex/latex/readarray | |
parent | 6fa70341466dba0e18c40c6b905680428b0806ec (diff) |
readarray (7jul16)
git-svn-id: svn://tug.org/texlive/trunk@41652 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/readarray')
-rw-r--r-- | Master/texmf-dist/tex/latex/readarray/readarray.sty | 7 |
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% |