[OS X TeX] Loop in tabular environment

Gerben Wierda Gerben.Wierda at rna.nl
Sat Apr 17 02:01:26 EDT 2004


Maybe the use of \tabularnewline will help and organizing your input 
that it is one cell at a time and producing the & inside the loop.

G

On Apr 16, 2004, at 17:39, Œistein Andersen wrote:

> 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.
>
>
>

-----------------------------------------------------
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