[OS X TeX] Loop in tabular environment

Œistein Andersen oeandersen at wanadoo.fr
Fri Apr 16 11:39:24 EDT 2004


I have a problem with the following loop, which reads lines from a file:

\loop
     \ifeof1 \encorefalse \fi
\ifencore
     \read1 to \ligne
     % TREATMENT OF \ligne
     % OUTPUT
\repeat

This loop works correctly. However, if I put it into a "tabular" 
environment and use "&" or "\cr", the loop will end. Apparently, the 
loop cannot exceed one "cell" of the table. Is this correct? Is there a 
simple solution, or should I rather write this using another language 
than TeX?

Thank you for any help.

-- 
Øistein Andersen
-----------------------------------------------------
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the MacOSX-TeX mailing list