texmf-dist/doc/latex/parselines/README
raw| 1 | parselines |
| 2 | |
| 3 | This is a simple line parser. |
| 4 | |
| 5 | For files: \dofilebyline{filename} expands \do (a user macro with 1 parameter) |
| 6 | on each line of the given file, reading lines one after another with \read. |
| 7 | |
| 8 | For text: |
| 9 | \begin{parse lines}{\row: #1} |
| 10 | ... |
| 11 | ... |
| 12 | \end{parse lines} |
| 13 | |
| 14 | will add the number of the row before each line in the environment. |
| 15 | |
| 16 | Other funny things can be done (see the .pdf ;-)) |
| 17 | |
| 18 | (c) lppl - 2010 (FC) |
| 19 | |
| 20 | |
| 21 | |
| 22 |