# new ctan package: parselines

Date: October 25, 2010 3:01:14 PM CEST
the daemon heard someone whispering: > Name of contribution: parselines > Author's name: Florent CHERVET > Location on CTAN: macros/latex/contrib/FC/parselines > Summary description: A simple line parser for files or text inside environment > License type: lppl > > Announcement text given by the package's contributor: > ---------------------------------------------------------------------- > 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) > > ---------------------------------------------------------------------- > > Users may view the package catalogue entry at > http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/parselines.html > or they may browse the package directory at > http://www.tex.ac.uk/tex-archive/macros/latex/contrib/parselines/ thanks for the upload; i have installed the new package and made an an entry for it in the catalogue repository. (the web version of the entry will not appear until some time tonight.) Robin Fairbairns For the CTAN team

## parselines – Apply a macro to each line of an environment

The package defines an environment “parse lines” which processes each line of an environment with a macro.

An example of shading the lines of an environment is given.

 Package parselines Version 1.4 Copyright 2010 Florent Chervet Maintainer Florent Chervet

more