I am trying to operator on a CSV file on a row-by-row basis with the following dummy code.





Which gives me

File ended while scanning use of \@dtl@next.

What is wrong with this code?

P.S.: I am using lualatex on TL2018.

1 Answer 1


There's a spurious comma at the end of the second argument of \DTLforeach:

    \yy=y,% <-- here

(Empty elements aren't skipped by the parser.) Just remove it:

  • Ohh dear....I have wasted hours on that! You've got eagle eyes ;-) Thanks so much.
    – bonanza
    Commented Nov 8, 2018 at 21:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .