2010/10/15 Procházka Lukáš Ing. - Pontex s. r. o.
Hello,
I'd need to \typefile a file from n-th line (= ignoring first n-1 lines).
Is there such an option for \typefile macro? (http://wiki.contextgarden.net/Reference/en/typefile is silent.)
I tried:
\typefile[default][lines={10}]{a_file.txt} % Start at line 10
\typefile[default][lines={10,+1}]{a_file.txt} % Start at line 10, step = 1
\typefile[default][start=10]{a_file.txt} % Start at line 10
\typefile[default][from=10]{a_file.txt} % Start at line 10
No success.
(The last Ctx minimals, WinXP.)
Lukas Not an answer, but quick recipe: With mkiv is trivial ; use lua to skip the first n-1 lines. With mkii just use luatex as lua interpreter to call with \executesystemcommand and then see previous point.
-- luigi