Index of /archives/text/CTAN/macros/latex2e/contrib/parselines

Icon  Name                                        Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] README 2010-10-25 05:43 413 [TXT] parselines.ins 2011-02-19 22:10 2.5K [TXT] parselines.dtx 2011-02-19 22:19 25K [   ] parselines.pdf 2011-02-19 22:19 179K
parselines

This is a simple line parser.

For files: \dofilebyline{filename} expands \do (a user macro with 1 parameter)
on each line of the given file, reading lines one after another with \read.

For text:
\begin{parse lines}{\row: #1}
 ...
 ...
\end{parse lines}

will add the number of the row before each line in the environment.

Other funny things can be done (see the .pdf ;-))

(c) lppl - 2010 (FC)