Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/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)


Name Size Date Notes
README 413 2010-10-24 22:43
parse­lines.dtx 26084 2011-02-19 14:19
parse­lines.ins 2571 2011-02-19 14:10
parse­lines.pdf 183717 2011-02-19 14:19

Down­load the con­tents of this pack­age in one zip archive (145.7k).

parse­lines – Ap­ply a macro to each line of an en­vi­ron­ment

The pack­age de­fines an en­vi­ron­ment “parse lines” which pro­cesses each line of an en­vi­ron­ment with a macro.

An ex­am­ple of shad­ing the lines of an en­vi­ron­ment is given.

Pack­age De­tailsparse­lines
Li­censeThe LaTeX Project Public Li­cense 1.3
Main­tainerFlorent Chervet
Con­tained inTeX Live as parse­lines
MiKTeX as parse­lines
Topics high­light­ing type­set ma­te­rial, fancy frames, wa­ter­marks, etc.
sup­port for de­vel­op­ment of (La)TeX macros
Guest Book Sitemap Contact Contact Author