You can get the contents of this directory bundled as a zip file.
| Identifier | Caption |
|---|---|
| parselines | Apply a macro to each line of an environment. |
| Name | Size* | Date UTC | Notes |
|---|---|---|---|
| README | 413 bytes | 2010-Oct-24 | Shown below |
| parselines.dtx | 25 KiB | 2011-Feb-19 | |
| parselines.ins | 3 KiB | 2011-Feb-19 | |
| parselines.pdf | 179 KiB | 2011-Feb-19 |
*File sizes in kibibytes.
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)